home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / TEXTTORS / AMEDIT.LZH / AMEDIT.DOC next >
Text File  |  1992-06-11  |  115KB  |  3,031 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                 AM-EDIT
  9.  
  10.  
  11.                             REFERENCE MANUAL
  12.  
  13.  
  14.                        Version 1.30 (June, 1992)
  15.  
  16.  
  17.       Copyright (C) 1991 by Paul L. Clem, Jr., all rights reserved
  18.  
  19.  
  20.  
  21.                               PLC Software
  22.                   1572 Montgomery Highway, Suite 104-D
  23.                           Birmingham, AL 35216
  24.  
  25.                          Voice: (205) 822-1619
  26.                          CompuServe:  70751,1322
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                            _______
  35.                       ____|__     |                (R)
  36.                    --|       |    |-------------------
  37.                      |   ____|__  |  Association of
  38.                      |  |       |_|  Shareware
  39.                      |__|   o   |    Professionals
  40.                    -----|   |   |---------------------
  41.                         |___|___|    MEMBER
  42.  
  43.  
  44.  
  45.  
  46.  
  47.                            TABLE OF CONTENTS
  48.                            -----------------
  49.  
  50.      SECTION                                                    PAGE
  51.      -------                                                    ----
  52.  
  53.  
  54. 1.   Introduction ..............................................  1
  55. 1.1    Definition of Shareware .................................  2
  56. 1.2    Installation ............................................  3
  57. 1.3    General Description .....................................  4
  58. 1.4    Selecting the file to edit ..............................  7
  59. 1.5    Rules for non-text files ................................  8
  60.  
  61. 2.   Positioning the current line ..............................  9
  62.  
  63. 3.   Editing a Line ............................................ 11
  64.  
  65. 4.   Function keys ............................................. 13
  66.  
  67. 5.   Starting a new file ....................................... 19
  68.  
  69. 6.   Commands .................................................. 21
  70. 6.1    Delete command .......................................... 22
  71. 6.2    Move command ............................................ 24
  72. 6.3    Copy command ............................................ 25
  73. 6.4    Insert commands ......................................... 27
  74. 6.5    Find commands ........................................... 28
  75. 6.6    Find command with option to replace ..................... 29
  76. 6.7    Find and replace all .................................... 30
  77. 6.8    Print commands .......................................... 31
  78. 6.9    Trace command ........................................... 32
  79.  
  80. 7.   System Information Screen ................................. 33
  81.  
  82. 8.   Using the calculator ...................................... 34
  83.  
  84. 9.   User ID function .......................................... 36
  85.  
  86. Appendix A - Messages .......................................... 40
  87.  
  88. A.1    Informative messages .................................... 40
  89. A.2    Error messages .......................................... 43
  90.  
  91. 1  INTRODUCTION
  92.    ------------
  93.  
  94.  
  95. The author of this system has been a contract programmer for over 20
  96. years. During his career, he has had occasion to use numerous full-
  97. screen text editors on computers of all sizes.
  98.  
  99. His goal in writing AM-EDIT has been to provide an editor for personal
  100. computer users which, based on his experience, combines the best fea-
  101. tures and avoids the pitfalls of the various editors he has used. Some
  102. of the features of the resulting system are listed below.
  103.  
  104.     *  The entire system is written in assembler, so as to provide the
  105.        fastest possible response time.
  106.  
  107.     *  It is extremely fast in loading and saving files, and in find-
  108.        ing text strings.
  109.  
  110.     *  It is designed to allow the user to execute commands with max-
  111.        imum speed and with minimal number of keystrokes. For example,
  112.        after starting an edit, you can delete your entire file, no
  113.        matter how large, with the following 3 keystrokes:
  114.  
  115.            1. Enter the letter "d" (or "D")
  116.            2. Press Ctrl-Page Down
  117.            3. Press the ENTER key
  118.  
  119.        The entire file will be deleted in a fraction of a second.
  120.  
  121.        You can then restore your entire file by pressing Shift-F4.
  122.        The file will be restored in the same amount of time that
  123.        it took to delete it.
  124.  
  125.     *  It is compact in size. AM-EDIT uses less than 40K of memory,
  126.        and still provides extensive on-screen help.
  127.  
  128.     *  It makes maximum usage of memory. AM-EDIT can store over 3
  129.        times the amount of data in real memory as compared to some
  130.        PC editors.
  131.  
  132.     *  It allows a user to "undo" mistakes, within reason of course.
  133.        For example, if you make changes to a line and then notice
  134.        you are changing the wrong line, you can restore the line by
  135.        pressing function key F3. And if you delete a string of lines
  136.        and then find that you deleted the wrong lines, you can press
  137.        Shift-F4 to restore the deleted lines.
  138.  
  139.     *  It allows a user to trace all lines which have been added,
  140.        copied, moved, or changed since the edit began.
  141.  
  142.     *  It allows each user to have his or her own "User ID", which
  143.        identifies a group of parameters which have been defined by
  144.        that user.  Some examples of user parameters are the screen
  145.        colors, the file backup option, and the number of lines to
  146.        scroll when paging through the file.
  147.  
  148.  
  149.                                                                  -1-
  150.  
  151. The result is a "no-nonsense" full-screen text editor which is both
  152. powerful and extremely easy to use. It does not duplicate functions
  153. which can be performed by your operating system. It does not contain
  154. those complex functions which, in the opinion of the author, are of
  155. absolutely no use to most programmers and which cause even the most
  156. simple function to be more complicated than it needs to be.
  157.  
  158. Consequently, you are not burdened with hugh manuals which must be
  159. consulted at every turn. Instead, you have a brief reference manual
  160. which you probably need to read only once. After that, you can use
  161. the series of HELP screens within the editor (initiated by pressing
  162. function key F1) to answer most of your questions.
  163.  
  164.  
  165. 1.1  DEFINITION OF SHAREWARE
  166.      -----------------------
  167.  
  168. AM-EDIT is a "shareware program" and is provided at no charge to you
  169. for evaluation. Shareware is a method of distribution, not a type of
  170. software. Shareware distribution gives you a chance to try software
  171. before buying it. If you try a Shareware program such as AM-EDIT and
  172. continue to use it, you are expected to register.
  173.  
  174. The Shareware system makes fitting your needs easier, because you can
  175. try a product before you buy. And because the overhead is low, prices
  176. are low also. Shareware has the ultimate money-back guarantee; if you
  177. don't use the product, you don't pay for it.
  178.  
  179. If you find AM-EDIT useful for your needs and you continue to use it
  180. after a reasonable trial period, you are asked to make a registration
  181. payment of $40 to PLC Software. The registration payment includes $37
  182. for the system and $3 for shipping. Add $5 if shipping overseas.
  183.  
  184. Upon registering, you will receive:
  185.  
  186.     *  A diskette containing the latest version of the system.
  187.  
  188.     *  A printed and bound manual.
  189.  
  190.     *  A registration number entitling you to free technical support.
  191.  
  192.     *  Notifications of major new releases detailing all enhancements,
  193.        with option to purchase at low cost.
  194.  
  195.  
  196. Registration will license one copy of AM-EDIT for use on any one com-
  197. puter at any one time. The registered version should NOT be given to
  198. any other computer users.
  199.  
  200. However, please feel free to give the shareware version of AM-EDIT to
  201. friends and associates, with the understanding that they too should
  202. register if they find it useful and continue to use it.
  203.  
  204. Remember that shareware is based on the honor system. The authors of
  205. shareware programs can not stay in business without the support of
  206. those using the programs.
  207.  
  208.  
  209.                                                                  -2-
  210.  
  211. The author is a member of the Association of Shareware Professionals
  212. (ASP). ASP wants to make sure that the shareware principle works for
  213. you. If you are unable to resolve a shareware-related problem with
  214. an ASP member by contacting the member directly, ASP may be able to
  215. help. The ASP Ombudsman can help you resolve a dispute or problem
  216. with an ASP member, but does not provide technical support for mem-
  217. bers' products. Please write to the ASP Ombudsman at 545 Grover Road,
  218. Muskegon, MI 49442 or send a CompuServe message via CompuServe Mail
  219. to ASP Ombudsman 70007,3536.
  220.  
  221.  
  222.  
  223. 1.2  INSTALLATION
  224.      ------------
  225.  
  226. The following is needed to run AM-EDIT:
  227.  
  228.     *  An IBM PC or PS/2, or compatible.
  229.  
  230.     *  A color or monochrome monitor.
  231.  
  232.     *  DOS version 2.0 (or any later DOS version).
  233.  
  234.     *  At least 128K of memory.
  235.  
  236.     *  A hard disk drive.
  237.  
  238.     *  A 3.5" or 5.25" floppy drive.
  239.  
  240.  
  241. The diskette that you receive will contain a file called AMEDIT.EXE.
  242. This is the ONLY program needed to run the AM-EDIT system.
  243.  
  244. To install the system, copy AMEDIT.EXE from the diskette onto your
  245. hard disk drive. If you create a new directory for AM-EDIT, you may
  246. want to change your AUTOEXEC.BAT file to include the new directory
  247. in the PATH command. This will make it easier to execute the system
  248. from any directory.
  249.  
  250. To execute AM-EDIT, enter "amedit" on the DOS command line and press
  251. the ENTER key. If you prefer, you can enter the name of the file that
  252. you wish to edit after the command, for example:
  253.  
  254.        amedit yourfile.bat <enter>
  255.  
  256. If you do not enter a file name, then the first screen to appear will
  257. prompt you for the name of the file that you wish to edit (Refer to
  258. Section 1.4 - Selecting the file to edit).
  259.  
  260. It should be noted that some keyboards use the term "Return" rather
  261. than "Enter". Whatever the wording, the Return key performs exactly
  262. the same as the Enter key. For convenience, the term "Enter key" is
  263. used throughout this manual.
  264.  
  265.  
  266.  
  267.  
  268.  
  269.                                                                  -3-
  270.  
  271. 1.3  GENERAL DESCRIPTION
  272.      -------------------
  273.  
  274. AM-EDIT is a full-screen text editor which allows you to create and
  275. update computer programs, batch files, and other text files.
  276.  
  277. AM-EDIT does not pretend to be a word processor. It is first and fore-
  278. most a programmers tool. However, it can easily be used to create and
  279. maintain document files. The "split line" and "join line" functions,
  280. which are initiated by pressing function keys F7 and Shift-F7, were
  281. added especially for this purpose. The document you are reading right
  282. now was created using AM-EDIT.
  283.  
  284. When you first execute AM-EDIT using a color monitor, you will see two
  285. different color schemes on the screen.
  286.  
  287. The top two lines (lines 1 and 2) and the bottom line (line 25) of the
  288. screen will have a red background and white foreground. This is called
  289. the "highlight" color.
  290.  
  291. The remainder of the screen is the area in which your text will appear.
  292. These lines will have a blue background with off-white foreground. This
  293. is called the "text" color.
  294.  
  295. If you are using a monochrome monitor, the "highlight" scheme will be
  296. black on a grey background, and the "text" scheme will be white on a
  297. black background.
  298.  
  299. These are the "default" color schemes. As you will see later in this
  300. manual, each user can set his or her own color schemes, and there can
  301. be up to 30 different users on the same computer (see Section 9).
  302.  
  303. A field which is within the text area (lines 3-24 of the screen) but
  304. which has the same color scheme as screen lines 1, 2, and 25 is said
  305. to be "highlighted".
  306.  
  307. The name of the file that you are editing is displayed on the top line
  308. of your screen. The number of lines in the file is also displayed on
  309. this line.
  310.  
  311. You will notice that the file name displayed on the top line of the
  312. screen will initially be in the highlight color scheme. But once you
  313. have made a change to your file, the name is displayed with the text
  314. color scheme. This serves to remind you that there are one or more
  315. unsaved changes to your file. If you save your file during the edit,
  316. the file name reverts to the highlight color scheme.
  317.  
  318. Line 2 of the screen provides an area for you to enter commands. This
  319. is called the "command line". Commands are entered within columns 10-
  320. 80 of this line. When the cursor is positioned on the command line,
  321. you are said to be in COMMAND mode. When you begin an edit, you will
  322. be in COMMAND mode.
  323.  
  324. Whenever the cursor is positioned within the text area (lines 3-24),
  325. you are said to be in EDIT mode, and the word "EDIT" will appear in
  326. the first 4 columns of the screen's bottom line.
  327.  
  328.  
  329.                                                                  -4-
  330.  
  331. The first 7 columns of the text lines are reserved by the system for
  332. line numbers and other information which will be explained later in
  333. this manual. Line numbers are automatically maintained by the system
  334. in sequential order. These line numbers are NOT a part of your file,
  335. and are displayed strictly for your convenience.
  336.  
  337. The system allows you to suppress the display of line numbers if you
  338. so desire. This is one of the options which you can specify when you
  339. define a User ID (see Section 9). If you suppress line numbers, only
  340. the first 2 columns of the lines are reserved by the system. This al-
  341. lows 78 characters of each line to appear on the screen as opposed to
  342. 73 characters if lines numbers are displayed.
  343.  
  344. Except for null files, one of the lines in your file is the "current
  345. line". If line numbers are suppressed, the current line is identified
  346. by a highlighted left-pointing arrow in the first column of the line.
  347. Otherwise, the line number of the current line is highlighted, and the
  348. arrow appears immediately to the right of the line number.
  349.  
  350. The line number of the current line is displayed on the bottom line of
  351. the screen, after the letter "L". When you begin an edit, the current
  352. line is the first line of your file.
  353.  
  354. The position of the current line is crucial to most commands and func-
  355. ion keys within AM-EDIT. It is up to you to position this line (refer
  356. to Section 2 - Positioning the current line).
  357.  
  358. The system also maintains a column number, which is displayed on the
  359. bottom line of the screen after the letter "C". The column number is
  360. ALWAYS the current (or last) position of the cursor within the current
  361. line. Since a line may have up to 1024 columns, the column number will
  362. always have a value of 1 through 1024. When you begin an edit, column
  363. number is 1.
  364.  
  365. Column number applies only to the current line. If you are in COMMAND
  366. mode, you will notice that the column number remains unchanged if you
  367. move the cursor back and forth along the command line.
  368.  
  369. Since a text line can have up to 1024 characters but not all of these
  370. characters can appear on the screen at any one time, your text lines
  371. may become offset. For example, if you are in EDIT mode and you press
  372. the "right arrow" key while the cursor is positioned at the last col-
  373. umn of the screen, you will notice that all text lines (but not line
  374. numbers) will shift left 1 column, with the leftmost character of each
  375. line shifting out of view. Whenever your text lines are offset by one
  376. or more characters, an asterisk (*) will appear after the column num-
  377. ber at the bottom of the screen.
  378.  
  379. Whenever you are in COMMAND mode, you may either enter a command, pos-
  380. ition the current line, or go into EDIT mode.
  381.  
  382. As you will see later in this document, there are several ways to go
  383. from COMMAND mode to EDIT mode. You will find that the easiest method
  384. is to simply press the ENTER key without entering a command. This will
  385. put you in EDIT mode with the cursor positioned at the current column
  386. number of the current line.
  387.  
  388.  
  389.                                                                  -5-
  390.  
  391. To get from EDIT mode to COMMAND mode, press the ESCAPE key (ESC). The
  392. command line will be cleared and the cursor will be positioned at the
  393. beginning of the command input area (column 10) on the command line.
  394.  
  395. The middle part of the screen's bottom line is reserved for error and
  396. informative messages. Informative messages result from some action you
  397. have taken. For example, after the completion of a delete command, an
  398. informative message will tell you how many lines were deleted.
  399.  
  400. The screen's bottom line also tells you if you are in character insert
  401. mode as opposed to character overwrite mode. If "INS" appears in col-
  402. umns 61-63, then you are in insert mode. To go into insert mode, press
  403. the insert key (INS or INSERT). To return to overwrite mode, press the
  404. insert key again.
  405.  
  406. When you begin an edit, you will be in overwrite mode.
  407.  
  408. All editing is done in real memory. When you begin your edit, the sys-
  409. tem uses only the amount of memory required to store itself and your
  410. file. If your file grows in size, the system will allocate more memory
  411. as needed. The amount of memory that can be allocated depends on the
  412. amount of memory on your computer, but cannot exceed 640k.
  413.  
  414. If the size of your file should ever exceed available memory, you will
  415. get an error message, but you will still be able to save your file and
  416. exit the system in the normal way.
  417.  
  418. The system can handle up to 60,000 lines. If your file should ever ex-
  419. ceed the maximum number of lines, you will get an error message, but
  420. you will still be able to save your file and exit the system in the
  421. normal way.
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.                                                                  -6-
  450.  
  451. 1.4  SELECTING THE FILE TO EDIT
  452.      --------------------------
  453.  
  454. As mentioned earlier, when you execute AM-EDIT from the DOS command
  455. line, you have the option of entering the name of the file that you
  456. wish to edit.
  457.  
  458. If you choose not to enter the file name on the DOS command line or
  459. if the file name entered was not a valid file name, then the first
  460. screen that you see will be the file-to-edit screen.
  461.  
  462. The file-to-edit screen asks you to enter the name of the file that
  463. you wish to edit.
  464.  
  465. If the file is not in the current directory (the directory you were
  466. in when you executed AM-EDIT), then you must enter the full path name
  467. starting with the letter identifying the disk drive, for example:
  468.  
  469.    c:\janet\asmprogs\sorter.asm
  470.  
  471. You also have the option of finding the file that you wish to edit by
  472. performing a directory search. To search the current directory, press
  473. the ENTER key at the file-to-edit prompt without entering a file name.
  474.  
  475. A box will appear on the screen containing the names of files from the
  476. current directory. Subdirectory names are also included. The names are
  477. displayed in alphabetical order.
  478.  
  479. Since only 18 file names appear on the directory search screen at one
  480. time, you can use the PAGE DOWN/PAGE UP keys and the up/down arrows to
  481. locate the file that you wish to edit. Once the desired file is high-
  482. lighted, press the ENTER key to select the file.
  483.  
  484. If the file selected is a subdirectory, then the file names from that
  485. subdirectory are displayed.
  486.  
  487. You may also enter a directory path and/or use the global file name
  488. characters (* and ?) at the file-to-edit prompt to initiate a direc-
  489. tory search, for example:
  490.  
  491.    c:\janet\      Displays all files in directory C:\JANET
  492.  
  493.    *.doc          Displays all files in the current directory having
  494.                   a file suffix of "DOC".
  495.  
  496.    c:\janet\*.?   Displays all files in directory C:\JANET having a
  497.                   a 1-character suffix or no suffix at all.
  498.  
  499. During a directory search, you can go directly to the root directory
  500. of your hard disk by pressing function key F4. From there, you can get
  501. to any file on the disk.
  502.  
  503. You can also press function key F8 at any time to cancel the directory
  504. search and return to the file-to-edit screen.
  505.  
  506.  
  507.  
  508.  
  509.                                                                  -7-
  510.  
  511. 1.5  RULES FOR NON-TEXT FILES
  512.      ------------------------
  513.  
  514. When AM-EDIT detects that the file that you have selected for editing
  515. is a non-text file, such as an object module or an executable file,
  516. the system handles the file in a different manner.
  517.  
  518. First, the system breaks the file into 72-character lines, with the
  519. last line having a length of 1 to 72 characters. This allows you to
  520. browse through the file using the up/down arrows and the PAGE UP and
  521. PAGE DOWN keys.
  522.  
  523. You are not allowed to update a non-text file. If you press a function
  524. key such as F4 (delete line) or F5 (duplicate line), you will get the
  525. error message "You may NOT update a non-text file".
  526.  
  527. The ONLY commands that you can use with non-text files are the FIND
  528. commands, but you may not use the replace string or the replace all
  529. options. If you attempt to execute a command other than a find, the
  530. error message "Command not valid for non-text files" will result.
  531.  
  532. You may use functions key F9 to find the next occurrence of a string
  533. and Shift-F9 to find the previous occurrence.
  534.  
  535. When you have finished browsing through a non-text file, press func-
  536. tion key F8 (save/exit key). This will return you immediately to the
  537. file-to-edit screen.
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.                                                                  -8-
  570.  
  571. 2.  POSITIONING THE CURRENT LINE
  572.     ----------------------------
  573.  
  574. The position of the current line is crucial to most of the commands
  575. and function keys within AM-EDIT.
  576.  
  577. You may use any of the methods listed below to position the current
  578. line. Unless otherwise noted, all of the keys mentioned below are va-
  579. lid in both COMMAND mode and EDIT mode.
  580.  
  581.     *  The "up arrow" key moves the current line up 1 line. If the
  582.        current line is already the first line of your file, the mes-
  583.        sage "*** TOP OF DATA ***" will appear.
  584.  
  585.     *  The "down arrow" key moves the current line down 1 line. If the
  586.        current line is already the last line of your file, the message
  587.        "*** END OF DATA ***" will appear.
  588.  
  589.     *  "PAGE UP" causes the lines on your screen to scroll down by the
  590.        number of lines set for the current User ID, with the position
  591.        of the current line decreasing by the number of lines scrolled.
  592.  
  593.        If you are already at the top page of the file when you press
  594.        PAGE UP, then the screen does NOT scroll and the informative
  595.        message "*** TOP OF DATA ***" is displayed.
  596.  
  597.     *  "PAGE DOWN" causes the lines on your screen to scroll up by the
  598.        number of lines set for the current User ID, with the position
  599.        of the current line increasing by the number of lines scrolled.
  600.  
  601.        If you are already at the last page of your file when you press
  602.        PAGE DOWN, then the screen remains as is and the informative
  603.        message "*** END OF DATA ***" appears.
  604.  
  605.     *  Ctrl-PAGE UP positions the current line at the the first line
  606.        of your file.
  607.  
  608.     *  Ctrl-PAGE DOWN positions the current line at the the last line
  609.        of your file.
  610.  
  611.     *  Function key F9 searches for the next occurrence of the string
  612.        defined in the most recent FIND command. If the text string is
  613.        found, the line containing the string becomes the current line
  614.        with the cursor positioned at the 1st character of the "found"
  615.        string. Refer to Section 6.5 for more information about the
  616.        FIND command.
  617.  
  618.     *  Shift-F9 searches for the previous occurrence of the string de-
  619.        fined by the most recent FIND command. If the string is found,
  620.        the line containing the string becomes the current line, with
  621.        the cursor positioned at the beginning of the "found" string.
  622.        See Section 6.5 for more information about the FIND command.
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.                                                                  -9-
  630.  
  631.     *  In COMMAND mode, you may set the current line to any line num-
  632.        ber. To do this, enter the line number on the command line and
  633.        press the ENTER key. If you enter zero, then the current line
  634.        becomes the first line of the file. If you enter a number which
  635.        exceeds the number of the last line of the file, then the cur-
  636.        rent line becomes the file's last line.
  637.  
  638.        This feature is especially useful after you compile a program
  639.        in which one or more errors were found. Since a compile will
  640.        normally give you the line numbers where the errors occurred,
  641.        you can use this feature to go directly to the line(s) which
  642.        caused the errors.
  643.  
  644.     *  In EDIT mode, pressing the ENTER key advances the current line
  645.        to the next line on the screen, with the cursor positioned at
  646.        the first non-blank character of that line (or column 1 if the
  647.        line is blank). If the current line is positioned at the bot-
  648.        tom line (line 24) on the screen when you press ENTER, then all
  649.        lines on the screen will scroll up with the top line scrolling
  650.        off the screen and the next line in order scrolling onto the
  651.        screen.
  652.  
  653.        If you press the ENTER key while the current line is the LAST
  654.        line of your file, the message "*** END OF DATA ***" is dis-
  655.        played and the current line remains unchanged.
  656.  
  657.     *  In EDIT mode, pressing the TAB key advances the cursor to the
  658.        start of the next field within your file. If the next field is
  659.        on another line, then that line becomes the current line. This
  660.        may cause the lines on your screen to scroll up.
  661.  
  662.     *  In EDIT mode, pressing Shift-TAB positions the cursor at the
  663.        start of the previous field within your file. If the previous
  664.        field is on another line, then that line becomes the current
  665.        line. This may cause the lines on your screen to scroll down.
  666.  
  667.        If should be noted that when you are in the process of typing
  668.        new lines into your file, the TAB and Shift-TAB keys perform in
  669.        a different manner. See the description of function keys F6 and
  670.        Shift-F6 in Section 4.
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.                                                                 -10-
  690.  
  691. 3.  EDITING A LINE
  692.     --------------
  693.  
  694. The following keys may be used when entering the file-to-edit, when
  695. entering a command, or when adding/changing a text line. When you are
  696. in EDIT mode, some of the keys may cause the lines on your screen (but
  697. not line numbers) to shift either left or right.
  698.  
  699. For example, if you press the right arrow key while the cursor is pos-
  700. itioned at the last column of the screen, then the text on all lines
  701. will shift left 1 position.
  702.  
  703. Remember that while you are in EDIT mode, the column number displayed
  704. at the bottom right hand side of the screen tells you the position of
  705. the cursor on the current line. An asterisk (*) after the column num-
  706. ber indicates that your text is offset by one or more characters.
  707.  
  708.     *  Left arrow moves the cursor left 1 column. If the cursor is al-
  709.        ready positioned at the first column of the line, then the key
  710.        is ignored (no error message is displayed).
  711.  
  712.     *  Right arrow moves the cursor right 1 column. If the cursor is
  713.        already positioned at the last column of the line (column 80
  714.        of the command line or column 1024 of a text line), the cursor
  715.        will not move and the message "End of line" will appear.
  716.  
  717.     *  The HOME key causes the cursor to be positioned at the first
  718.        non-blank character of the line. If the line is blank, then
  719.        the cursor will be positioned at the beginning of the line.
  720.  
  721.     *  The END key positions the cursor at the column to the right of
  722.        the last non-blank character of the line. However, if the last
  723.        non-blank character is on the last column of the line (column
  724.        80 of the command line or column 1024 of a text line), then the
  725.        cursor is positioned at the last column of the line.
  726.  
  727.     *  The BACKSPACE key moves the cursor 1 position to the left and
  728.        then erases the character at that cursor position. But if the
  729.        cursor is positioned at the first column of the line, the key
  730.        is ignored.
  731.  
  732.     *  The DELETE (or DEL) key deletes the character at the current
  733.        cursor position. All characters to the right of the deleted
  734.        character will shift left 1 column.
  735.  
  736.     *  Function key F2 erases the character at the current cursor pos-
  737.        ition and all characters on the line which are to the right of
  738.        the cursor. See Section 4 (Function keys) for more information.
  739.  
  740.     *  Function key F3 restores a text line to its original state if
  741.        you are in EDIT mode, repeats the last FIND command if you are
  742.        in COMMAND mode, or repeats the previous file name if you are
  743.        entering the file-to-edit. See Section 4 (Function keys) for
  744.        more information.
  745.  
  746.  
  747.  
  748.  
  749.                                                                 -11-
  750.  
  751.     *  In EDIT mode, the TAB key advances the cursor to the start of
  752.        the next field within your file. This provides an alternative
  753.        to using the right arrow key when positioning the cursor.
  754.  
  755.        If the next field is on another line, then the cursor advances
  756.        to the first field on that line, and that line becomes the cur-
  757.        rent line. This may cause lines on your screen to scroll up.
  758.  
  759.        As an example, suppose you press the TAB key while the cursor
  760.        is positioned at or past the last field of the last line (line
  761.        24) of the screen. The following will happen:
  762.  
  763.          *  All lines on the screen will scroll up 1 line, with the
  764.             top line scrolling off the screen.
  765.          *  The next line in order will scroll onto the screen.
  766.          *  The cursor is positioned at the start of the first field
  767.             of the line that scrolled onto the screen.
  768.  
  769.        If, in the above example, the next line in order was blank or
  770.        there were several blank lines before the next non-blank line,
  771.        then all lines on the screen would have scrolled up until the
  772.        non-blank line (or end of file) was reached.
  773.  
  774.     *  In EDIT mode, the Shift-TAB key positions the cursor at the
  775.        start of the previous field within your file. This key provides
  776.        an alternative to using the left arrow key when positioning the
  777.        cursor.
  778.  
  779.        Like the TAB key, the Shift-TAB may alter the position of the
  780.        current line, and may cause the lines on your screen to scroll
  781.        down one or more lines.
  782.  
  783.     *  Ctrl-HOME positions the cursor at the first column of the line.
  784.        If you are in COMMAND mode when you press this key, the cursor
  785.        is positioned at the beginning of the command line. Otherwise,
  786.        the cursor is positioned at column 1 of the current line.
  787.  
  788.     *  Ctrl-END positions the cursor at the last column of the line.
  789.        If you are in COMMAND mode when you press this key, the cursor
  790.        is positioned at the end of the command line. Otherwise, the
  791.        cursor is positioned at column 1024 of the current line.
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.                                                                 -12-
  810.  
  811. 4.  FUNCTION KEYS
  812.     -------------
  813.  
  814. Function keys may be pressed while you are in COMMAND mode as well as
  815. when you are in EDIT mode. Since many of the function keys act as com-
  816. mands, you must make sure that the command area is blank whenever you
  817. press these keys while in COMMAND mode. Otherwise, the system does not
  818. know whether to process the command or the function key, and the error
  819. message "Command conflict" may result.
  820.  
  821.  
  822. F1  - Help key. Pressing this key will provide on-screen help at any
  823.       time EXCEPT when you are within a special function such as the
  824.       calculator, User ID function, or the System Information Screen.
  825.  
  826.       The help key brings up a menu which allows you to select one of
  827.       several screens containing detailed information about AM-EDIT.
  828.  
  829. F2  - Erases the character at the current cursor position and all
  830.       characters to the right of the cursor on the line.
  831.  
  832.       Remember that since a text line can have up to 1024 characters
  833.       but not all of these characters can appear on the screen at one
  834.       time, this key may erase characters which are not seen on the
  835.       current screen.
  836.  
  837. F3  - This key has different usages depending on where you are.
  838.  
  839.       While entering the file-to-edit, function key F3 will repeat the
  840.       name of the previous file (if any) that you edited.
  841.  
  842.       In COMMAND mode, function key F3 repeats the most recent FIND
  843.       command. This is useful if you misspell a search string. In this
  844.       situation, press function key F3 to restore the command, correct
  845.       the spelling, and press the ENTER key to reissue the command.
  846.  
  847.       In EDIT mode, function key F3 restores the current line to its
  848.       original state. This is useful if you make unwanted changes to
  849.       a line, for example:
  850.  
  851.         *  You press function key F2 to erase part of a line and then
  852.            notice that you erased the wrong line. By pressing F3, the
  853.            line is restored to its original state.
  854.  
  855.         *  You begin entering a command and suddenly realize that the
  856.            cursor is positioned on a text line instead of the command
  857.            line. In this case, press F3 to restore the text line and
  858.            then press the ESCAPE key to get to the command line.
  859.  
  860.       In EDIT mode, function key F3 applies only to the current line.
  861.       Once you have moved the cursor away from a line, you can not
  862.       return to that line to restore it.
  863.  
  864.       Also, if you change a line and then press F8 to save your file,
  865.       you can not restore the line after the save is completed, even
  866.       though the cursor is still positioned on that line.
  867.  
  868.  
  869.                                                                 -13-
  870.  
  871. F4  - Deletes the current line. If you are in EDIT mode and you delete
  872.       the only remaining line in your file, you will automatically go
  873.       into COMMAND mode (since you now have a "null file").
  874.  
  875. F5  - Duplicates the current line.
  876.  
  877. F6 -  This key, along with Shift-F6, allows you to use the keyboard to
  878.       type new lines of text into your file.
  879.  
  880.       If you press F6 or Shift-F6 while already in the process of typ-
  881.       ing new lines from the keyboard, then you will return to regular
  882.       edit mode.
  883.  
  884.       Before pressing F6, you must position the current line to the
  885.       line BEFORE which you wish to type the new line(s).
  886.  
  887.       You will note later on in this document that Shift-F6 is ident-
  888.       ical to F6 except that it allows you to type new lines AFTER the
  889.       current line.
  890.  
  891.       After you press F6, one of the following will happen:
  892.  
  893.         *  If the current line is the last text line (line 24) on the
  894.            screen, then all lines above the current line will scroll
  895.            up leaving a blank line for you to type the new line.
  896.  
  897.         *  In all other cases, all lines on the screen starting at the
  898.            current line will scroll down leaving a blank line for you
  899.            to type the new line.
  900.  
  901.       You may now type a new line in the space provided. After typing
  902.       the new line, press the ENTER key. The lines on the screen will
  903.       again scroll up or down leaving another blank line for you to
  904.       type the next line. If you wish to insert a blank line, simply
  905.       press the ENTER key without typing anything.
  906.  
  907.       You may type in as many lines as you wish. While you are in the
  908.       process of typing new lines, the value "EDIT-ADD" will appear
  909.       in columns 1-8 of the screen's bottom line.
  910.  
  911.       While adding a text line, you can press the TAB key to advance
  912.       the cursor to a point which is based on the word offsets on the
  913.       previous 5 non-blank lines. If the cursor is already past the
  914.       beginning of the last word of text on these lines, pressing the
  915.       TAB key will have no effect (the cursor does not move).
  916.  
  917.       Pressing Shift-TAB does the exact opposite of the TAB key when
  918.       adding a text line.
  919.  
  920.       Also while typing a new line, you can use the right arrow key
  921.       to duplicate the character which is just above the cursor pos-
  922.       ition on the previous line. When you do this, the character
  923.       insert flag is ignored, that is, you will get the same result
  924.       in character insert mode as in character overwrite mode.
  925.  
  926.  
  927.  
  928.  
  929.                                                                 -14-
  930.  
  931.       If you press any of the keys listed below while typing new text
  932.       lines, the error "Key not valid while adding text" will appear:
  933.  
  934.         *  F4 - delete the current line
  935.         *  F5 - duplicate the current line
  936.         *  F7 - split the current line
  937.         *  Shift-F4 - restore deleted line(s)
  938.         *  Shift-F7 - join the current line to the previous line
  939.  
  940.  
  941.       Once you have finished typing new lines, do one of the following:
  942.  
  943.         *  Press function key F6 (or Shift-F6)
  944.         *  Press the ESCAPE key to go into COMMAND mode
  945.         *  Press one of the line positioning keys (up or down arrow,
  946.            PAGE UP, PAGE DOWN, Ctrl-PAGE UP, or Ctrl-PAGE DOWN)
  947.         *  Press function key F9 or Shift-F9 to search for the next
  948.            or previous occurrence of a string.
  949.         *  Press function key F8 to save your file
  950.  
  951. F7  - Splits the current line at the current cursor position. All
  952.       characters starting at the cursor position are truncated from
  953.       the line. A new line made up of the truncated portion is then
  954.       added to the file after the current line. The new line then be-
  955.       comes the current line with the cursor positioned at column 1.
  956.  
  957.       If the cursor is positioned at column 1 of the current line
  958.       when you press F7, then the entire line is moved down leaving
  959.       a blank line in its place.
  960.  
  961.       If you press F7 while the cursor is positioned after the last
  962.       non-blank character of the current line, then the newly formed
  963.       line will be blank.
  964.  
  965. F8  - Save/exit key. Function key F8 is used to save your file and
  966.       also to end an edit session.
  967.  
  968.       When you press F8 and there are text changes to save, the sys-
  969.       tem proceeds to save your file, after which the message "Data
  970.       saved - Repeat F8 to end edit" appears.
  971.  
  972.       If you press F8 and there have not been any changes to the file
  973.       since the last save (or since you began the edit if this is the
  974.       first save), then the system will NOT perform the save and the
  975.       message "Data unchanged - Repeat F8 to end edit" appears.
  976.  
  977.       To end an edit, press function key F8 IMMEDIATELY after a save
  978.       or a save attempt.
  979.  
  980.       You may save your file as often as you like during an edit ses-
  981.       sion without ending the edit. At the time that you perform the
  982.       first save of your text, your original file will be renamed to
  983.       filename.BKP if you are using the backup option (see Section
  984.       9 - User ID function).
  985.  
  986. F9  - Finds the next occurrence of a string (see Section 6.5).
  987.  
  988.  
  989.                                                                 -15-
  990.  
  991. F10 - Replaces a string (see Section 6.6).
  992.  
  993. Shift-F1 - Displays the System Information screen (see Section 7).
  994.  
  995. Shift-F2 - Initiates the calculator (see Section 8).
  996.  
  997. Shift-F3 - Initiates the User ID function (see Section 9).
  998.  
  999. Shift-F4 - Restores (undeletes) lines that you most recently deleted
  1000.            from your file by using the DELETE command or by pressing
  1001.            function key F4.
  1002.  
  1003.            When you press Shift-F4, the line(s) most recently deleted
  1004.            are restored into your file.
  1005.  
  1006.            The system maintains a DELETE TABLE containing information
  1007.            needed to restore deleted lines. Each time that you delete
  1008.            a line or group of lines either by pressing F4 or by using
  1009.            the DELETE command, an entry is made in this table.
  1010.  
  1011.            The DELETE TABLE is LIFO (last in/first out) and can hold
  1012.            up to 20 entries. If you delete text and the table is al-
  1013.            ready at capacity, then the oldest entry is bumped from
  1014.            the table, for example:
  1015.  
  1016.              1.  You delete 10 lines using function key F4.
  1017.              2.  You then press Shift-F4 5 times to restore the last
  1018.                  5 lines deleted in step 1.
  1019.              3.  You then delete 18 more lines using function key F4.
  1020.              4.  At this point, you can restore the 18 lines that you
  1021.                  deleted in step 3 plus the 4th and 5th lines deleted
  1022.                  in step 1. But you cannot restore the first 3 lines
  1023.                  which were deleted in step 1 since these have been
  1024.                  bumped from the DELETE TABLE.
  1025.  
  1026.            When you press Shift-F4, the deleted line(s) will normally
  1027.            be restored into your file with their original line num-
  1028.            ber(s). However, lines inserted into the file may alter the
  1029.            position at which the lines are restored, for example:
  1030.  
  1031.              1.  You use the DELETE command to delete lines 300-399.
  1032.              2.  You then insert 10 lines somewhere before line 300.
  1033.              3.  You then press Shift-F4 to restore the lines which
  1034.                  were deleted in step 1. The lines will be restored
  1035.                  into the file as lines 310-409.
  1036.  
  1037.            After line(s) are restored into your file, the first line
  1038.            restored becomes the current line, and a count of the num-
  1039.            ber of restored lines is displayed.
  1040.  
  1041. Shift-F5 - Writes a printer "forms feed" character into your file.
  1042.            This feature is provided for users writing documents who
  1043.            may wish to include page ejects for printing purposes.
  1044.  
  1045.            This function should not be used when writing programs,
  1046.            since the forms feed character can cause an error during
  1047.            compilation of your program.
  1048.  
  1049.                                                                 -16-
  1050.  
  1051. Shift-F6 - This key allows you to use the keyboard to type new lines
  1052.            into your file. Before pressing Shift-F6, you must position
  1053.            the current line to the line AFTER which you wish to type
  1054.            the new line(s).
  1055.  
  1056.            As described earlier, function key F6 performs the same
  1057.            task as Shift-F6, with the exception that function key F6
  1058.            allows you to type new lines BEFORE the current line.
  1059.  
  1060.            Shift-F6 is identical in all aspects to F6 other than the
  1061.            original positioning of the screen, which is as follows:
  1062.  
  1063.              *  If the current line is the last line (line 24) of the
  1064.                 screen, then all lines on the screen will scroll up
  1065.                 leaving a blank line for you to type the new line.
  1066.  
  1067.              *  In all other cases, all lines on the screen below the
  1068.                 current line will scroll down leaving a blank line for
  1069.                 you to type the new line.
  1070.  
  1071. Shift-F7 - Joins the current line to the previous line. The cursor
  1072.            position on the current line is not important at the time
  1073.            that this key is pressed, since the entire line will be
  1074.            joined to the previous line.
  1075.  
  1076.            After the lines have been joined, the joined line becomes
  1077.            the current line, with the cursor positioned at the first
  1078.            "joined" character.
  1079.  
  1080.            If you press Shift-F7 while the current line is the first
  1081.            line of your file, you will get the error message "Shift-F7
  1082.            is not valid here".
  1083.  
  1084.            If you hit Shift-F7 by mistake, press function key F7 im-
  1085.            mediately to split the lines and thus "undo" the join.
  1086.  
  1087. Shift-F8 - Cancels the edit session without saving your file.
  1088.  
  1089.            If there have not been any changes to your file since the
  1090.            last save (or since you began the edit if there have been
  1091.            no saves), the edit will terminate immediately.
  1092.  
  1093.            If there ARE unsaved changes to your file when you press
  1094.            Shift-F8, then the following message will appear at the
  1095.            bottom of the screen:
  1096.  
  1097.                 Press Shift-F10 to verify cancel
  1098.  
  1099.            This message provides a safeguard in the case you press
  1100.            Shift-F8 by mistake. The message serves to warn you that
  1101.            you will lose changes to your file if you verify the can-
  1102.            cel. If you DO intend to cancel the edit, press Shift-F10
  1103.            and the edit will end with the message "Edit cancelled -
  1104.            changes lost".
  1105.  
  1106.  
  1107.  
  1108.  
  1109.                                                                 -17-
  1110.  
  1111.            If you decide to continue with your edit rather than ver-
  1112.            ify the cancel, Shift-F10 becomes disabled as soon as you
  1113.            press any other key. In other words, Shift-F10 is enabled
  1114.            ONLY at the point immediately after you press Shift-F8 and
  1115.            there are unsaved changes to your file.
  1116.  
  1117. Shift-F9 - Finds the previous occurrence of a string (see Section 6.5).
  1118.  
  1119. Ctrl-F1  - Displays the ascii chart, which will overlay the right hand
  1120.            portion of your screen. Use the up and down arrows and the
  1121.            PAGE UP/PAGE DOWN keys to view the entire chart. Pressing
  1122.            the ESCAPE key returns you to the edit.
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.                                                                 -18-
  1170.  
  1171. 5.  STARTING A NEW FILE
  1172.     -------------------
  1173.  
  1174. If you begin an edit and the system is unable to find the file that
  1175. you specified, it will assume that you are starting a new file. The
  1176. message "STARTING NEW FILE" will appear at the bottom of the screen
  1177. and line 3 of the screen will contain "***** BOTTOM OF DATA *****".
  1178.  
  1179. This is called a "null-file" condition. Since there are no lines in
  1180. your file, there is no current line.
  1181.  
  1182. If you begin an edit of a file that contains no records (the file is
  1183. empty or contains only an end-of-file byte), then you will also be in
  1184. a "null-file" condition, but the message "STARTING NEW FILE" does NOT
  1185. appear at the bottom of your screen.
  1186.  
  1187. The only function keys that you may use in this situation are:
  1188.  
  1189.     *  F1 (Help)
  1190.  
  1191.     *  F2 (Erase to end-of-line), but only to erase all or part of
  1192.        the command line.
  1193.  
  1194.     *  F6 (Type new lines before the current line)
  1195.  
  1196.     *  F8 (Save/Exit)
  1197.  
  1198.     *  Shift-F1 (Display the System Information Screen)
  1199.  
  1200.     *  Shift-F2 (Initiate the calculator)
  1201.  
  1202.     *  Shift-F3 (Initiate the User ID function)
  1203.  
  1204.     *  Shift-F6 (Type new lines after the current line)
  1205.  
  1206.     *  Shift-F8 (Cancel the edit session without saving the file)
  1207.  
  1208.     *  Ctrl-F1 (Display ascii chart)
  1209.  
  1210. The ONLY commands that are valid when you begin an edit of a null file
  1211. are the INSERT commands (see Section 6.4).
  1212.  
  1213. If you find that you entered the file name incorrectly, then terminate
  1214. the edit by pressing Shift-F8 or by pressing function key F8 twice. A
  1215. new file will NOT be created.
  1216.  
  1217. Otherwise, do one of the following:
  1218.  
  1219.     *  Press function key F6 to begin typing lines from the keyboard.
  1220.  
  1221.     *  Enter an INSERT command to insert lines from another file. In
  1222.        a "null file" situation, the "insert before" and "insert after"
  1223.        commands will produce the same result.
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.                                                                 -19-
  1230.  
  1231. Once your file contains at least one line of text, then all other com-
  1232. mands and function keys will become available to you.
  1233.  
  1234. You can also get into a "null file" condition if you delete all of the
  1235. lines in your file. In this case, the command and function key limita-
  1236. tions are the same as those described for starting a new file, except
  1237. that you can use function key Shift-F4 to restore deleted lines into
  1238. your file.
  1239.  
  1240. The message "***** BOTTOM OF DATA *****" NEVER appears on your screen
  1241. unless your file contains less than 22 lines of text (less than a full
  1242. page).
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.                                                                 -20-
  1290.  
  1291. 6.  COMMANDS
  1292.     --------
  1293.  
  1294. The AM-EDIT commands are listed below. Commands are entered on the
  1295. command line (line 2 of the screen). A command may be entered in
  1296. upper case, lower case, or a combination of upper and lower case.
  1297.  
  1298.     D      - DELETE one or more lines
  1299.     M      - MOVE one or more lines
  1300.     C      - COPY one or more lines
  1301.     I/IA   - INSERT lines into your file from another file
  1302.     F/FI   - FIND a text string [with option to replace it].
  1303.     FF/FFI - FIND the first occurrence of a text string within your
  1304.              file [with option to replace it].
  1305.     FL/FLI - FIND the last occurrence of a text string within your
  1306.              file [with option to replace it].
  1307.     P1     - PRINT all or part of your file on printer LPT1.
  1308.     P2     - PRINT all or part of your file on printer LPT2.
  1309.     P3     - PRINT all or part of your file on printer LPT3.
  1310.     PF1    - Write a form feed character to printer LPT1.
  1311.     PF2    - Write a form feed character to printer LPT2.
  1312.     PF3    - Write a form feed character to printer LPT3.
  1313.     T      - Trace and highlight the lines in your file which have
  1314.              been added, moved, or changed since you began the edit.
  1315.  
  1316. As discussed earlier, you may use the command line to set the current
  1317. line. To do this, enter the line number on the command line and press
  1318. the ENTER key.
  1319.  
  1320. If you are in COMMAND mode and wish to enter EDIT mode, then clear
  1321. the command area (if not already clear) by pressing the ESCAPE key
  1322. and then press one of the following keys:
  1323.  
  1324.     *  ENTER key - Positions the cursor at the current column number
  1325.                    of the current line.
  1326.  
  1327.     *  HOME key  - Positions the cursor at the first non-blank char-
  1328.                    acter of the current line (or column 1 if the line
  1329.                    is blank). This may cause text on the screen to
  1330.                    shift right one or more characters.
  1331.  
  1332.     *  END key   - Positions the cursor after the last non-blank char-
  1333.                    acter of the current line. If the last column of
  1334.                    the line (column 1024) is not blank, then the cur-
  1335.                    sor is positioned at column 1024.
  1336.  
  1337.     *  TAB key   - Positions the cursor at the current column number
  1338.                    of the current line and then processes the TAB key
  1339.                    as if it had been pressed at that point.
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.                                                                 -21-
  1350.  
  1351. 6.1  DELETE COMMAND
  1352.      --------------
  1353.  
  1354. The DELETE command allows you to delete any number of lines from your
  1355. file. To delete a single line, you would normally use function key F4,
  1356. since this key can also be used while you are in EDIT mode.
  1357.  
  1358. Each time that you delete text, either by using the DELETE command or
  1359. by pressing function key F4, an entry is made into the "Delete Table".
  1360. This table makes it possible for you to restore deleted line(s) at any
  1361. later time, should you find it necessary  (see function key Shift-F4 -
  1362. restore lines). Since the "Delete Table" can hold only 20 entries, you
  1363. are advised to use the DELETE command rather than function key F4 when
  1364. deleting a consecutive string of lines.
  1365.  
  1366. For example, if you wished to delete the first 25 lines of your file,
  1367. you could press function key F4 a total of 25 times to accomplish the
  1368. task. But at that point, you could only restore the last 20 deleted
  1369. lines by using function key Shift-F4, and you would be unable to re-
  1370. store any lines that you might have previously deleted.
  1371.  
  1372. But if you used the DELETE command to delete the 25 lines as a group,
  1373. only a single entry would have been made into the delete table. You
  1374. could then restore all 25 lines by pressing Shift-F4 just once.
  1375.  
  1376. To execute the DELETE command, do the following:
  1377.  
  1378.     *  Position the current line at either the first or the last line
  1379.        that you wish to delete.
  1380.  
  1381.     *  If you are in EDIT mode, get into COMMAND mode by pressing the
  1382.        ESCAPE key.
  1383.  
  1384.     *  Enter "d" (or "D") on the command line.
  1385.  
  1386.     *  Position the current line to the opposite end of the range of
  1387.        lines to be deleted. Unless line numbers are suppressed, the
  1388.        line number of each line to be deleted will be highlighted. The
  1389.        highlighted letter "d" will appear to the left of each line to
  1390.        be deleted.
  1391.  
  1392.        The word "DELETE" will be displayed in columns 1-6 of line 25
  1393.        to remind you that a DELETE command is in progress.
  1394.  
  1395.     *  Once all lines to be deleted are marked, press ENTER. The lines
  1396.        will immediately disappear from your screen.
  1397.  
  1398. You may cancel the DELETE command at any time before pressing the
  1399. ENTER key by pressing the ESCAPE key.
  1400.  
  1401. After the completion of a DELETE command, a message showing the num-
  1402. ber of lines deleted will be displayed at the bottom of the screen.
  1403.  
  1404. If you deleted all lines in your file, you will be in a "null file"
  1405. condition (see Section 5). Otherwise, after completion of the DELETE
  1406. command, the current line is positioned as follows:
  1407.  
  1408.  
  1409.                                                                 -22-
  1410.  
  1411.     *  If the line(s) deleted included the last line of your file, the
  1412.        current line becomes the line which is now the last line of
  1413.        your file.
  1414.  
  1415.     *  In all other cases, the current line is positioned at the line
  1416.        which followed the last line that was deleted.
  1417.  
  1418. You may delete any number of lines with this command. For example, to
  1419. delete lines 100 through 222 of your file, do the following:
  1420.  
  1421.     *  Position the current line at line 100. You can do this by using
  1422.        the up/down arrows, by using the PAGE UP/PAGE DOWN keys, or by
  1423.        entering "100" on the command line and pressing the ENTER key.
  1424.     *  If in EDIT mode, press the ESCAPE key to go into COMMAND mode.
  1425.     *  Enter "d" on the command line.
  1426.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1427.        is line 222. If you go past line 222, use the up arrow and/or
  1428.        PAGE UP key to back up.
  1429.     *  Press ENTER to complete the deletion.
  1430.  
  1431. You could also delete lines 100 through 222 by doing the following:
  1432.  
  1433.     *  Position the current line at line 222 of your text.
  1434.     *  If in EDIT mode, press the ESCAPE key to go into COMMAND mode.
  1435.     *  Enter "d" on the command line.
  1436.     *  Use the up arrow and/or PAGE UP key until the current line is
  1437.        line 100. If you go past line 100, use the down arrow and/or
  1438.        PAGE DOWN key to back up.
  1439.     *  Press ENTER to complete the deletion.
  1440.  
  1441. Note that you can use function key F9 (find next occurrence of a text
  1442. string) or Shift-F9 (find previous occurrence of a text string) when
  1443. positioning the current line during any DELETE command. However, you
  1444. must first establish the text string by using a FIND command.
  1445.  
  1446. As an example, suppose you wish to delete a segment called "tempseg"
  1447. from a program which is written in assembler. Since you know that the
  1448. first and the last lines of the segment begin with the word "tempseg",
  1449. you can do the following:
  1450.  
  1451.     *  Enter the command "FF tempseg". This will locate the first oc-
  1452.        currence of "tempseg" within your file.
  1453.     *  Press the ESCAPE key to get into COMMAND mode.
  1454.     *  Enter "d" on the command line.
  1455.     *  Press function key F9. The current line will be positioned at
  1456.        the last line of the segment "tempseg", and all of the lines
  1457.        within the segment "tempseg" will be marked for deletion.
  1458.     *  Press ENTER to complete the deletion.
  1459.  
  1460. Whenever you press function key F9 or Shift-F9 while a MOVE, COPY, or
  1461. DELETE command is in progress, you will stay in COMMAND mode after the
  1462. text string is found. In all other cases, you go (or remain) in EDIT
  1463. mode with the cursor positioned at the "found" text string.
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.                                                                 -23-
  1470.  
  1471. 6.2  MOVE COMMAND
  1472.      ------------
  1473.  
  1474. The MOVE command allows you to move (relocate) one of more lines of
  1475. text within your file.
  1476.  
  1477. To execute the MOVE command, do the following:
  1478.  
  1479.     *  Position the current line to either the first or the last line
  1480.        that you wish to move.
  1481.  
  1482.     *  If you are in EDIT mode, get into COMMAND mode by pressing the
  1483.        ESCAPE key.
  1484.  
  1485.     *  Enter "M" (or "m") on the command line.
  1486.  
  1487.     *  Position the current line to the opposite end of the range of
  1488.        lines to be moved. Unless line numbers are suppressed, the
  1489.        line number of each line to be moved will be highlighted. The
  1490.        highlighted letter "m" will appear to the left of each line to
  1491.        be moved.
  1492.  
  1493.        The word "MOVE" will be displayed in columns 1-4 of line 25 to
  1494.        remind you that a MOVE command is in progress.
  1495.  
  1496.     *  Once all lines to be moved are marked:
  1497.  
  1498.          *  Enter "A" on the command line after the "M" if you are
  1499.             moving the lines after a target line.
  1500.  
  1501.          *  Enter "B" on the command line after the "M" if you are
  1502.             moving the lines before a target line.
  1503.  
  1504.     *  Position the current line to the target line of the move.
  1505.  
  1506.     *  Press ENTER to complete the move.
  1507.  
  1508. You may cancel the MOVE command at any time before pressing ENTER by
  1509. pressing the ESCAPE key (ESC).
  1510.  
  1511. To move a single line of text, enter "M A" or "M B" on the command
  1512. line before positioning the current line to the target line of the
  1513. move.
  1514.  
  1515. After the completion of a MOVE command, the current line becomes the
  1516. first line moved, and the number of lines moved is displayed at the
  1517. bottom of the screen.
  1518.  
  1519. You can move any number of lines with this command. For example, to
  1520. move lines 200 through 345 after line 512, do the following:
  1521.  
  1522.     *  Position the current line at line 200 of your file by using the
  1523.        up/down arrows, by using the PAGE UP and PAGE DOWN keys, or by
  1524.        entering "200" on the command line and pressing the ENTER key.
  1525.     *  If you are in EDIT mode, press the ESCAPE key (ESC) to go into
  1526.        COMMAND mode.
  1527.  
  1528.  
  1529.                                                                 -24-
  1530.  
  1531.     *  Enter "m" on the command line.
  1532.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1533.        is line 345. If you go past line 345, use the up arrow and/or
  1534.        PAGE UP key to back up.
  1535.     *  Enter "a" on the command line. You will notice that the cursor
  1536.        was already positioned one space away from the "m" on the com-
  1537.        mand line. The command line now contains "m a".
  1538.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1539.        is line 512. If you go past line 512, use the up arrow and/or
  1540.        PAGE UP key to back up.
  1541.     *  Press ENTER to complete the move.
  1542.  
  1543. Note that like the DELETE command, you can use function keys F9 and
  1544. Shift-F9 when positioning the current line. In the example above, you
  1545. could have used F9 or Shift-F9 when positioning to line 200 and/or to
  1546. line 345 and/or to line 512.
  1547.  
  1548.  
  1549.  
  1550. 6.3  COPY COMMAND
  1551.      ------------
  1552.  
  1553. The COPY command allows you to copy (duplicate) one of more lines of
  1554. text within your file. You may copy as many lines as you wish.
  1555.  
  1556. To execute the COPY command, do the following:
  1557.  
  1558.     *  Position the current line to either the first or the last line
  1559.        that you wish to copy.
  1560.  
  1561.     *  If you are in EDIT mode, get into COMMAND mode by pressing the
  1562.        ESCAPE key.
  1563.  
  1564.     *  Enter "C" (or "c") on the command line.
  1565.  
  1566.     *  Position the current line to the opposite end of the range of
  1567.        lines to be copied. Unless line numbers are suppressed, the
  1568.        line number of each line to be copied will be highlighted. The
  1569.        highlighted letter "c" will appear to the left of each line to
  1570.        be copied, and the word "COPY" will be displayed in columns 1-4
  1571.        of line 25 to remind you that a COPY command is in progress.
  1572.  
  1573.     *  Once all lines to be copied are marked:
  1574.  
  1575.        *  Enter "A" on the command line after the "C" if you are
  1576.           copying the lines after a target line.
  1577.  
  1578.        *  Enter "B" on the command line after the "C" if you are
  1579.           copying the lines before a target line.
  1580.  
  1581.     *  Position the current line to the target line of the copy.
  1582.  
  1583.     *  Press ENTER to complete the copy.
  1584.  
  1585. You may cancel the COPY command at any time before you press ENTER
  1586. by hitting the ESCAPE key (ESC).
  1587.  
  1588.  
  1589.                                                                 -25-
  1590.  
  1591. To copy a single line, enter "C A" or "C B" on the command line be-
  1592. fore positioning the current line to the target line of the copy.
  1593.  
  1594. After the completion of a COPY command, the current line becomes the
  1595. first line added to the file as a result of the command, and the num-
  1596. ber of lines copied is displayed at the bottom of the screen.
  1597.  
  1598. You can copy any number of lines with this command. For example, to
  1599. copy lines 99 through 122 before line 200, do the following:
  1600.  
  1601.     *  Position the current line at line 99 of your file by using the
  1602.        up/down arrows, by using the PAGE UP and PAGE DOWN keys, or by
  1603.        entering "99" on the command line and pressing ENTER.
  1604.     *  If you are in EDIT mode, press ESCAPE to get into COMMAND mode.
  1605.     *  Enter "c" on the command line.
  1606.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1607.        is line 122. If you go past line 122, use the up arrow and/or
  1608.        PAGE UP key to back up.
  1609.     *  Enter "b" on the command line. You will notice that the cursor
  1610.        was already positioned one space away from the "c" on the com-
  1611.        mand line. The command line now contains "c b".
  1612.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1613.        is line 200. If you go past line 200, use the up arrow or PAGE
  1614.        UP key to back up.
  1615.     *  Press ENTER to complete the copy.
  1616.  
  1617. Note that like the DELETE and MOVE commands, you can use function keys
  1618. F9 and Shift-F9 when positioning the current line. In the above exam-
  1619. ple, you could have used F9 or Shift-F9 when positioning to line 99
  1620. and/or line 122 and/or line 200.
  1621.  
  1622. If you have an extended keyboard (101/102 keys), you can do a "repeat
  1623. copy", that is, you can more conveniently copy the same line or group
  1624. of lines to more than one destination within your file.
  1625.  
  1626. To do this, press the ENTER key on the extreme right hand side of your
  1627. keyboard to complete a copy instead of the normal ENTER key. You will
  1628. remain in COPY mode and the lines that were marked for copying will
  1629. stay marked. You can then set the current line to a new target line
  1630. and press either one of the ENTER keys again.
  1631.  
  1632. In addition to the COPY command, you can use function key F5 to copy
  1633. the current line after itself. Function key F5 can be used in both
  1634. EDIT mode and COMMAND mode.
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.                                                                 -26-
  1650.  
  1651. 6.4  INSERT COMMANDS
  1652.      ---------------
  1653.  
  1654. The INSERT commands are used to insert lines into your file from other
  1655. files.
  1656.  
  1657. The point at which the lines are inserted is based on the location of
  1658. the current line. You must therefore position this line before you
  1659. issue an INSERT command.
  1660.  
  1661. There are two forms of the INSERT command; one to insert lines before
  1662. the current line and the other to insert lines after the current line.
  1663.  
  1664. To insert lines BEFORE the current line, enter "I" on the command line
  1665. followed by the name of the file from which the lines of text are to
  1666. be inserted, for example:
  1667.  
  1668.     I workfile.doc
  1669.  
  1670. To insert lines AFTER the current line, enter "IA" on the command line
  1671. followed by the name of the file from which the lines are to be in-
  1672. serted, for example:
  1673.  
  1674.     ia WORKFILE.Doc
  1675.  
  1676. If the file from which lines are to be inserted is not in the current
  1677. directory, you must enter the full path name. The "current directory"
  1678. is the directory you were in at the time that you executed AM-EDIT.
  1679.  
  1680. For example, if you were in directory C:\AMEDIT when you executed the
  1681. editor and you wish to insert the file WORK.TXT which is in directory
  1682. C:\JACK\UTILS, you would enter:
  1683.  
  1684.     i c:\jack\utils\work.txt
  1685.  
  1686.     OR
  1687.  
  1688.     ia C:\JACK\UTILS\WORK.TXT
  1689.  
  1690. The file that you specify in an INSERT command must be a valid text
  1691. file which contains at least one line of text. The file that you are
  1692. inserting from CAN be the same file that you are editing.
  1693.  
  1694. If you do not know or cannot remember the name of the file that you
  1695. wish to insert, you can do a directory search by just entering the
  1696. command "I" or "IA" without an argument and pressing the ENTER key.
  1697. Or, you can enter a partial directory path and/or use the global file
  1698. name characters (* and ?) to initiate the directory search as on the
  1699. file-to-edit screen.
  1700.  
  1701. After the line(s) have been inserted into your file, a message at the
  1702. bottom of the screen will tell you how many lines were inserted, and
  1703. the current line will become the first inserted line.
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.                                                                 -27-
  1710.  
  1711. 6.5  FIND COMMANDS
  1712.      -------------
  1713.  
  1714. The FIND commands allow you to search for a text string within your
  1715. file. To execute a FIND command, do the following:
  1716.  
  1717.     *  Enter one of the following commands on the command line:
  1718.  
  1719.        *  "F" if you wish to start the search at the column just to
  1720.            the right of the current column position of the current
  1721.            text line.
  1722.  
  1723.        *  "FF" if you wish to find the first occurrence of the text
  1724.            string within your file.
  1725.  
  1726.        *  "FL" if you wish to find the last occurrence of the text
  1727.            string within your file.
  1728.  
  1729.     *  Enter the text string that you wish to search for. Separate
  1730.        the string from the command by at least one space. The "find"
  1731.        text string cannot be a null string ("" or '').
  1732.  
  1733.     *  Press the ENTER key to start the search.
  1734.  
  1735. To ignore case during a search, use FI, FFI, or FLI as the command.
  1736. For example, while the command "F ab" will only search for the value
  1737. "ab", the command "FI ab" will search for "ab", "Ab", "aB", and "AB".
  1738.  
  1739. The string does not need to be enclosed in quotes unless it contains
  1740. a space or if it begins with a quote or double quote. For example:
  1741.  
  1742.     Invalid:  f GO TO          Valid:   f 'GO TO' or f "GO TO"
  1743.     Invalid:  FF 'a            Valid:   FF "'a"
  1744.     Invalid:  fli "abcd        Valid:   fli '"abcd'
  1745.  
  1746. If the text string is found, the string is highlighted and the line
  1747. which contains the string becomes the current line. If you are with-
  1748. in a MOVE, COPY, or DELETE command, then you will remain in COMMAND
  1749. mode. Otherwise, you will go into EDIT mode, with the cursor posi-
  1750. tioned at the first character of the "found" text string.
  1751.  
  1752. If the text string is not found, you will get the error message
  1753. "'string' not found".
  1754.  
  1755. Function key F9 may be used to find the next occurrence of the text
  1756. string defined by the most recent FIND command. When you press F9,
  1757. the search will begin at the column just to the right of the current
  1758. column position of the current line. If you press F9 and a not-found
  1759. condition resulted from the previous find, then the search will start
  1760. at the beginning of your file.
  1761.  
  1762. Function key Shift-F9 may be used to find the previous occurrence of
  1763. the string defined by the most recent FIND command. When this key is
  1764. pressed, the search begins at the column just to the left of the cur-
  1765. rent column position of the current line. If you press Shift-F9 and a
  1766. not-found condition resulted from the previous find, then the search
  1767. starts at the end of your file.
  1768.  
  1769.                                                                 -28-
  1770.  
  1771. 6.6  FIND COMMAND WITH OPTION TO REPLACE
  1772.      -----------------------------------
  1773.  
  1774. To use a FIND command with the option to replace a text string, enter
  1775. a second text string after the "find" text string on the command line.
  1776. This is the "replacement" string and must be separated from the "find"
  1777. string by at least one space.
  1778.  
  1779. The "replacement" string CAN be identical to the "find" string.
  1780.  
  1781. The same rules that apply to the "find" string also apply to the re-
  1782. placement string, that is, you need not enclose it in quotes unless it
  1783. contains a space or if it begins with a quote or double quote.
  1784.  
  1785. Unlike the "find" text string, the replacement string can be a null
  1786. string, for example, the following is a valid command:
  1787.  
  1788.     F 'word one' ''
  1789.  
  1790. In the above example, you are replacing the text string "word one"
  1791. with a null string.
  1792.  
  1793. The FIND-AND-REPLACE command works the same as the FIND command with
  1794. the exception that each time that the "find" text string is located
  1795. within your file and the cursor is positioned at that string, the
  1796. value "F10" will appear in columns 13-15 of the bottom line of the
  1797. screen. The purpose of this is to inform you that function key F10
  1798. is now enabled, that is, you may press F10 at that point to replace
  1799. the "find" string with the "replacement" string.
  1800.  
  1801. If you DO wish to replace the "found" text string, press function key
  1802. F10 immediately. The text will be replaced and the system will search
  1803. for the NEXT occurrence of the "find" string. If you do not wish to
  1804. replace the string, you may press function key F9 to find the next
  1805. occurrence of the "find" text string or Shift-F9 to find the previous
  1806. occurrence.
  1807.  
  1808. Note that function key F10 is enabled only under the follow circum-
  1809. stances:
  1810.  
  1811.     *  You are within a find-and-replace command.
  1812.  
  1813.     *  The cursor is positioned at the first column of the "found"
  1814.        text string.
  1815.  
  1816.     *  The "found" string is highlighted.
  1817.  
  1818.     *  The value "F10" appears in columns 13-15 of the bottom line
  1819.        of the screen.
  1820.  
  1821. If you press function key F10 at any other time, you will get the
  1822. error message "Key not enabled at this time".
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.                                                                 -29-
  1830.  
  1831. 6.7  FIND AND REPLACE ALL
  1832.      --------------------
  1833.  
  1834. To replace ALL occurrences of a text string, enter the keyword "A" or
  1835. "ALL" after the "replacement" string on the command line.
  1836.  
  1837. You must separate the keyword from the "replacement" string by one or
  1838. more spaces.
  1839.  
  1840. The system will replace ALL occurrences of the "find" string within
  1841. your file with the "replacement" string.
  1842.  
  1843. Examples of find-and-replace-all commands are:
  1844.  
  1845.    F PIC PICTURE a
  1846.  
  1847.    or
  1848.  
  1849.    f PIC PICTURE aLL
  1850.  
  1851. In the above examples, you are replacing all occurrences of the text
  1852. string "PIC" with the text string "PICTURE".
  1853.  
  1854. After the completion of a find-and-replace-all command, the position
  1855. of the current line remains unchanged, and you remain in COMMAND mode.
  1856. A message at the bottom of the screen will give you a count of text
  1857. replacements.
  1858.  
  1859. It is possible that when you are replacing all occurrences of a text
  1860. string with a longer text string, one of more lines in your file may
  1861. exceed the maximum record length of 1024 characters. If this should
  1862. occur, the lines which exceed the maximum length will be truncated to
  1863. 1024 characters in length and the message that informs you of the num-
  1864. ber of text replacements will also give you a count of the number of
  1865. lines that were truncated.
  1866.  
  1867. Since the "replacement" string CAN be the same as the "find" string,
  1868. you can use the find-and-replace-all command to determine the number
  1869. of occurrences of a particular string within your file.
  1870.  
  1871. For example, the command "f simply simply all" will give you a count
  1872. of the number of times that the word "simply" occurs in your file.
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.                                                                 -30-
  1890.  
  1891. 6.8  PRINT COMMANDS
  1892.      --------------
  1893.  
  1894. The PRINT commands provide an alternative to using the DOS print com-
  1895. mand to get a printer listing of your text file. These commands allow
  1896. you to produce a more orderly listing, and allow you to print only a
  1897. portion of your file if you so desire.
  1898.  
  1899. When you use a PRINT command, all lines from the current line to the
  1900. end of your file will be printed. You must therefore position the cur-
  1901. rent line to the first line that you wish to print before you issue
  1902. the command.
  1903.  
  1904. The User ID Function (see Section 9) allows you to set the following
  1905. parameters for printing:
  1906.  
  1907.     *  Whether or not to print the file name at the top of each page
  1908.        of your listing.
  1909.  
  1910.     *  Whether or not line numbers are to be included in the listing.
  1911.  
  1912.     *  The maximum number of lines to be printed on a page.
  1913.  
  1914. The valid PRINT commands are "P1", "P2" and "P3".
  1915.  
  1916. The printed output will be routed to the printer designated as LPT1 if
  1917. you use the command "P1", to LPT2 if the command is "P2", or to LPT3
  1918. if the command is "P3".
  1919.  
  1920. You may also use the commands "PF1", "PF2" and "PF3" to issue form
  1921. feed commands to the printers.
  1922.  
  1923. The PRINT commands provide an easy method for you to list any portion
  1924. of your file, complete with the correct line numbers. For example, to
  1925. print lines 244-456 of a 900-line file:
  1926.  
  1927.     *  Delete lines 457-900 by doing the following:
  1928.          *  Enter "457" on the command line and press ENTER
  1929.          *  Enter "d" on the command line
  1930.          *  Press Ctrl-PAGE DOWM
  1931.          *  Press ENTER to completion the deletion
  1932.     *  Position the current line at line 244
  1933.     *  Issue the PRINT command
  1934.     *  Press Shift-F4 to restore lines 457-900
  1935.  
  1936. The ability to print any range of lines is especially useful when you
  1937. encounter a problem with your printer in the middle of a listing.
  1938.  
  1939. You should be aware that the first command issued to a printer during
  1940. an edit will initialize that printer, which will nullify any settings
  1941. that you may have made. You should thus issue a form feed command to
  1942. the printer and then make your settings before you issue a print.
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.                                                                 -31-
  1950.  
  1951. 6.9  TRACE COMMAND
  1952.      -------------
  1953.  
  1954. The TRACE command allows you to find all lines within your file that
  1955. have been added, moved, copied, or changed since you began the edit.
  1956. Lines that have been deleted cannot be traced, but can be restored.
  1957.  
  1958. To initiate the command, enter "T" on the command line and press the
  1959. ENTER key. If there are no altered lines to display, the message "END
  1960. OF DATA" will appear at the bottom of the screen.
  1961.  
  1962. Otherwise, the cursor will be positioned at the first altered line
  1963. within your file. The line will be highlighted, and one of the fol-
  1964. lowing messages will appear at the bottom of the screen:
  1965.  
  1966.     *  Line changed                *  Line added by copy/changed
  1967.     *  Line moved                  *  Line added by copy/moved
  1968.     *  Line moved/changed          *  Line added by copy/moved/changed
  1969.     *  Line added                  *  Line inserted
  1970.     *  Line added/changed          *  Line inserted/changed
  1971.     *  Line added/moved            *  Line inserted/moved
  1972.     *  Line added/moved/changed    *  Line inserted/moved/changed
  1973.     *  Line added by copy
  1974.  
  1975. To find the next altered line, press ENTER again. Once all altered
  1976. lines have been located, the message "END OF DATA" will appear. You
  1977. can cancel the TRACE command at any time by pressing the ESCAPE key
  1978. or by entering a different command.
  1979.  
  1980. You can use the up/down arrows and the PAGE UP/PAGE DOWN keys to skip
  1981. over lines or to back up while doing a trace.
  1982.  
  1983. The following rules apply:
  1984.  
  1985.     *  A line can be changed by direct action from the keyboard, by
  1986.        a find-and-replace command, by a find-and-replace-all command,
  1987.        by a "split line" command, or by a "join line" command. There
  1988.        is no way to tell how many times a line has been changed.
  1989.  
  1990.     *  If a line has been both changed and moved, there is no way to
  1991.        tell if the line was changed before or after the move.
  1992.  
  1993.     *  If a line is moved and later moved back to it's original posi-
  1994.        tion within the file, it is still marked as "moved".
  1995.  
  1996.     *  If a line is changed and is later changed back to its original
  1997.        form, it is still marked as "changed". The one exception is if
  1998.        you use function key F3 to restore a line.
  1999.  
  2000.     *  If a line is changed and then copied, the line which was added
  2001.        to the file as a result is marked as "added by copy" but is not
  2002.        marked as "changed".
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.                                                                 -32-
  2010.  
  2011. 7.  SYSTEM INFORMATION SCREEN
  2012.     -------------------------
  2013.  
  2014. The System Information Screen is displayed when you press function key
  2015. Shift-F1. This screen will overlay your current screen, but by press-
  2016. ing any key, the current screen is restored.
  2017.  
  2018. The following information appears on the System Information Screen:
  2019.  
  2020.     *  The current date and time.
  2021.  
  2022.     *  The amount of memory available on your computer for storage of
  2023.        text.
  2024.  
  2025.     *  The amount of memory currently being used for storage of text.
  2026.  
  2027.     *  The amount of memory unused.
  2028.  
  2029.     *  The search string defined in the most recent FIND command. This
  2030.        is the value that the system will search for if you press func-
  2031.        tion key F9 or Shift-F9. If you have not used the FIND command
  2032.        since you began the edit, then the value "None" is displayed.
  2033.  
  2034.     *  The "replacement" string defined in the most recent find-and-
  2035.        replace command. If you have not yet used a FIND command with
  2036.        the option to replace, the value "None" is displayed.
  2037.  
  2038.     *  The size (length) of the longest record in your file at the
  2039.        time that the file was loaded. This value does not change dur-
  2040.        ing the edit unless you insert records from another file and
  2041.        one or more of the inserted lines exceeds the length of the
  2042.        longest record already in the file.
  2043.  
  2044.    *   A file update summary containing the following:
  2045.  
  2046.        *  Starting line count. This is the number of lines that were
  2047.           in the file when you began the edit.
  2048.  
  2049.        *  Lines added. This is the number of lines that you have added
  2050.           to your file either by typing from the keyboard, by copying
  2051.           lines, by splitting lines, or by inserting lines from other
  2052.           files. It does NOT include lines that were added, but have
  2053.           since been deleted from the file.
  2054.  
  2055.        *  Lines changed. This is the number of lines that have been
  2056.           changed at least once during the edit. It does NOT include
  2057.           lines that were changed, but have since been deleted from
  2058.           the file.
  2059.  
  2060.        *  Lines deleted. The number of lines that have been deleted
  2061.           from the file since the edit began. This does NOT include
  2062.           lines that were deleted and then restored into the file.
  2063.  
  2064.        *  Current line count. This is the number of lines that are
  2065.           currently in the file.
  2066.  
  2067.  
  2068.  
  2069.                                                                 -33-
  2070.  
  2071. 8.  USING THE CALCULATOR
  2072.     --------------------
  2073.  
  2074. The calculator is initiated by pressing Shift-F2. Initiation of the
  2075. calculator does not interfere in any way with the editing of your
  2076. text, and is provided merely as a convenience.
  2077.  
  2078. When initiated, the calculator will occupy a window overlaying the
  2079. right half of your edit screen.
  2080.  
  2081. There are two input fields; a function and an amount. The function is
  2082. a one-character field. Valid functions are "+" for add, "-" for sub-
  2083. tract, "*" for multiply, and "/" for divide.
  2084.  
  2085. Once the function is entered, you are prompted for an amount. Leading
  2086. zeros in the amount are ignored. If you press the ENTER key without
  2087. having entered an amount, the cursor returns to the function field.
  2088.  
  2089. The system displays the last 15 function/amount transactions entered.
  2090. Once you exceed 15 transactions, the oldest transaction scrolls off
  2091. the screen as each new one is entered.
  2092.  
  2093. Function keys F1-F9 have new definitions within the calculator. The
  2094. keys are enabled only when the cursor is positioned at the calcula-
  2095. tor's function field. The function key definitions are:
  2096.  
  2097.     *  F1 - Sets the number of digits which are allowed to the right
  2098.             of the decimal point. The number may be 0, 1, or 2. Each
  2099.             time you press F1, the number is increased by 1. If the
  2100.             number is already 2, then the number reverts to zero.
  2101.  
  2102.     *  F2 - Toggles the sign of the total. The sign of the subtotal
  2103.             is not changed.
  2104.  
  2105.     *  F3 - Erases the most recent function/amount transaction, and
  2106.             adjusts the total accordingly.
  2107.  
  2108.     *  F4 - Repeats the previous function/amount transaction.
  2109.  
  2110.     *  F5 - Adds the total to the subtotal.
  2111.  
  2112.     *  F6 - Adds the subtotal to the total.
  2113.  
  2114.     *  F7 - Moves the total to the subtotal.
  2115.  
  2116.     *  F8 - Moves the subtotal to the total.
  2117.  
  2118.     *  F9 - Sets the total to zero.
  2119.  
  2120. To clear the calculator, press the ESCAPE key. This will set both the
  2121. total and the subtotal to zero.
  2122.  
  2123. Pressing the ESCAPE key while the calculator is already clear returns
  2124. you to your edit.
  2125.  
  2126.  
  2127.  
  2128.  
  2129.                                                                 -34-
  2130.  
  2131. The following error messages may appear while you are using the cal-
  2132. culator. All messages will appear at the bottom of the calculator
  2133. window.
  2134.  
  2135.     1.  Need +,-,*, or /
  2136.  
  2137.         You have entered a character in the function field which is
  2138.         other than "+" (add), "-" (subtract), "*" (multiply), or "/"
  2139.         (divide).
  2140.  
  2141.     2.  Must be numeric
  2142.  
  2143.         You have enter a non-numeric character (other than a decimal
  2144.         point) in the amount field.
  2145.  
  2146.     3.  No decimal point
  2147.  
  2148.         You attempted to enter a decimal point in the amount, but the
  2149.         number of digits to the right of the decimal point (as set by
  2150.         function key F1) is zero.
  2151.  
  2152.     4.  Dup. decimal point
  2153.  
  2154.         You attempted to enter a decimal point in an amount field, but
  2155.         the amount already contains a decimal point.
  2156.  
  2157.     5.  F3 not valid here
  2158.  
  2159.         You pressed function key F3 to erase the most recent function/
  2160.         amount transaction, but you have yet to enter a transaction.
  2161.  
  2162.         OR
  2163.  
  2164.         You have pressed function key F3 after you have already erased
  2165.         the most recent function/amount transaction. Only the most re-
  2166.         cent transaction can be erased.
  2167.  
  2168.     6.  F4 not valid here
  2169.  
  2170.         You pressed function key F4 to repeat the most recent transac-
  2171.         tion, but you have not yet entered your first transaction.
  2172.  
  2173.     7.  Amount Overflow
  2174.  
  2175.         You have entered a transaction which would cause the number of
  2176.         digits in the TOTAL to exceed the maximum number of digits al-
  2177.         lowed. The maximum number of digits is 18 minus the number of
  2178.         digits to the right of the decimal point.
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.                                                                 -35-
  2190.  
  2191. 9.  USER ID FUNCTION
  2192.     ----------------
  2193.  
  2194. The User ID Function is initiated by pressing Shift-F3. The "User ID"
  2195. concept provides a method by which different users of the same compu-
  2196. ter may have different parameters, such as screen colors. Initiation
  2197. of the User ID Function does not interfere in any way with your edit.
  2198.  
  2199. When initiated, the User ID menu screen will overlay your edit screen,
  2200. with the current User ID displayed at the top of the screen. If there
  2201. has not yet been a User ID defined on your computer, the current User
  2202. ID will be "NONE" and the system will be using default parameters.
  2203.  
  2204. When you begin an edit, the current User ID will be the same as that
  2205. in effect when the editor was last terminated.
  2206.  
  2207. The User ID menu offers 3 options. They are:
  2208.  
  2209.     1. Define a new User ID
  2210.  
  2211.     2. Change the Current User ID
  2212.  
  2213.     3. Update the parameters for the Current User ID
  2214.  
  2215. You may not use options 2 or 3 until at least one User ID has been de-
  2216. fined on your computer. You may NOT alter the default parameters.
  2217.  
  2218. To define a new user ID, select option 1. You will be prompted for the
  2219. new User ID. The User ID may be up to 10 characters in length and must
  2220. be alphanumeric. Lower case letters will be translated to upper case.
  2221.  
  2222. When a new User ID is defined, it inherits all parameters of the cur-
  2223. rent User ID, and also BECOMES the current User ID. If this is the 1st
  2224. User ID defined on your computer, then it will inherit the "default"
  2225. parameters. You may, of course, select option 3 to change the parame-
  2226. ters once the new User ID has been defined.
  2227.  
  2228. Select option 2 on the User ID menu if you wish to change the current
  2229. User ID. You will be prompted for the new ID. The ID that you enter
  2230. must have been previously defined using option 1. Once the ID has been
  2231. entered and found to be valid, the parameters which have been set for
  2232. that user become effective immediately. If the new parameters include
  2233. different colors, these colors will take effect on the User ID screen,
  2234. and will be applied to the edit screen when you exit the User ID func-
  2235. tion by pressing the ESCAPE key.
  2236.  
  2237. To change the parameters for the current User ID, select option 3. A
  2238. new window will appear which will allow you to change any of the fol-
  2239. lowing parameters:
  2240.  
  2241.     *  Text background and foreground colors
  2242.  
  2243.     *  Highlighted area background and foreground colors
  2244.  
  2245.     *  Border color
  2246.  
  2247.  
  2248.  
  2249.                                                                 -36-
  2250.  
  2251.     *  Alarm length (lets you turn the alarm off if you so desire)
  2252.  
  2253.     *  Alarm tone (set the tone of the alarm to your liking)
  2254.  
  2255.     *  The number of lines to scroll when you press the PAGE UP or the
  2256.        PAGE DOWN key while paging through your file. The Default value
  2257.        is 11 (a half page). You may set the value to any number from 1
  2258.        to 22. If you wish to scroll a full page when you press PAGE UP
  2259.        or PAGE DOWN, set the number to 22.
  2260.  
  2261.     *  The typematic rate. The "typematic rate" is the rate at which a
  2262.        keystroke repeats automatically while you hold down a key. You
  2263.        can set the rate to 4, 6, 8, 10, 12, 16, 20, 24, or 30. The de-
  2264.        fault is 30.
  2265.  
  2266.        Setting the typematic rate is only effective on the PC/AT and
  2267.        all PS/2 computers. On all other computers, you can change the
  2268.        typematic rate, but it will have no effect.
  2269.  
  2270.     *  The option of whether or not to keep the typematic rate in ef-
  2271.        fect when you exit the editor. The default is NO. Set the value
  2272.        to YES if you wish to apply the typematic rate to DOS and other
  2273.        programs.
  2274.  
  2275.        Again, this option is only effective on the PC/AT and all PS/2
  2276.        computers.
  2277.  
  2278.     *  The option of whether or not to suppress line numbers on your
  2279.        screen. The default is NO. If you set this option to YES, then
  2280.        sequential line numbers will NOT appear to the left of the text
  2281.        lines. The absence of line numbers allows 78 columns of data to
  2282.        appear on your screen, as opposed to 73 WITH line numbers.
  2283.  
  2284.     *  The option of whether or not to display hidden files during a
  2285.        directory search. The default is NO. By setting the option to
  2286.        YES, hidden files will be displayed along with other files when
  2287.        you do a directory search either when you are finding the file-
  2288.        to-edit or when you are inserting lines from another file. Hid-
  2289.        den files within a directory list are identified by an asterisk
  2290.        (*) next to the file name.
  2291.  
  2292.     *  The option of whether or not to replace blanks with tab charac-
  2293.        ters when writing an edited file back to disk. The default is
  2294.        NO. Setting this option to YES can save on the amount of disk
  2295.        space needed to store your file.
  2296.  
  2297.        The system automatically converts tab characters to blanks when
  2298.        it loads a file.
  2299.  
  2300.     *  The option of whether or not the system should create a backup
  2301.        file (.BKP) during an edit in which you change a file. The de-
  2302.        fault is NO. If you set this option to YES, then your file will
  2303.        be renamed "yourfile.BKP" the first time that you do a save of
  2304.        your file. For example, if the option is YES and you change a
  2305.        file named "STARTUP.DOC", then after a normal exit from the
  2306.        editor:
  2307.  
  2308.  
  2309.                                                                 -37-
  2310.  
  2311.             STARTUP.DOC will contain your edited file.
  2312.  
  2313.             STARTUP.BKP will contain the version of SRARTUP.DOC as it
  2314.             existed before the edit. If a file named STARTUP.BKP al-
  2315.             ready existed, it would have been deleted before the new
  2316.             version of STARTUP.BKP was created.
  2317.  
  2318.     *  The option of whether or not to print the file name at the top
  2319.        of each page when you print all or part of your file. Default
  2320.        is YES.
  2321.  
  2322.     *  The option of whether or not to include line numbers in a list-
  2323.        ing when you print all or part of your file. Default is YES. It
  2324.        does not matter whether or not line numbers are suppressed.
  2325.  
  2326.     *  The maximum number of lines to be printed per page when print-
  2327.        ing all or part of your file. Default is 60. You can set this
  2328.        number to any value from 50 to 70. Remember that printing the
  2329.        file name at the top of each page takes 2 lines. Thus, if the
  2330.        "Print file name" option is YES and the lines per page is 60,
  2331.        each page of your listing will have a line containing the file
  2332.        name followed by a blank line and 58 text lines.
  2333.  
  2334.  
  2335. To change a parameter, use the up/down arrows to set the pointer to
  2336. the parameter that you wish to change. Then use the left and right
  2337. arrows to set the parameter to the desired value.
  2338.  
  2339. For example, to change the text background color, set the pointer to
  2340. the "text background color" field using the up/down arrows, then use
  2341. the left/right arrows to set the desired color. Each time you press
  2342. the left or right arrow, the background color changes on the parameter
  2343. screen. Any colors that you change will be applied to your edit screen
  2344. if, and only if, you save your changes.
  2345.  
  2346. After you have set the parameters to your satisfaction, you may press
  2347. function key F1 to save the parameters. If you decide NOT to save the
  2348. parameters, press the ESCAPE key. After you have pressed either F1 or
  2349. ESCAPE, you will return to the User ID menu screen. From there, you
  2350. can press the ESCAPE key to return to your edit screen.
  2351.  
  2352. All User ID's are maintained by the system on the file AMEDIT.DAT in
  2353. the root directory of your hard disk. This 1204-byte file is created
  2354. by the system at the time that you define your first User ID. Do NOT
  2355. attempt to create or update this file yourself!
  2356.  
  2357. The maximum number of user ID's that can be maintained on AMEDIT.DAT
  2358. is 30. If you should ever wish to delete all User ID's that have been
  2359. defined on your computer and start over, you must delete AMEDIT.DAT
  2360. from your root directory.
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.                                                                 -38-
  2370.  
  2371. The following error messages may appear while you are within the User
  2372. ID function.
  2373.  
  2374.     1.  Invalid response
  2375.  
  2376.         On the User ID menu screen, you have pressed a key other than
  2377.         "1", "2", "3", or the ESCAPE key.
  2378.  
  2379.         OR
  2380.  
  2381.         On the parameter update screen, you have pressed a key other
  2382.         than up arrow, down arrow, left arrow, right arrow, function
  2383.         key F1 to save your changes, or the ESCAPE key to return to
  2384.         the User ID menu screen without saving.
  2385.  
  2386.     2.  User ID must be alphanumeric
  2387.  
  2388.         While entering a User ID, you have entered a character other
  2389.         than a letter or a number.
  2390.  
  2391.     3.  You must first define a new User ID
  2392.  
  2393.         You have selected option 2 or 3 on the menu screen, but there
  2394.         are no User ID's defined on your computer. You must define at
  2395.         least one User ID before you can use these options.
  2396.  
  2397.     4.  User ID "idname" is not defined
  2398.  
  2399.         You are attempting to change the current User ID, but the ID
  2400.         that you entered has not been defined.
  2401.  
  2402.     5.  User ID "idname" is already defined
  2403.  
  2404.         You are attempting to add a new User ID to the system, but the
  2405.         User ID that you entered has already been defined.
  2406.  
  2407.     6.  User ID Table is full
  2408.  
  2409.         You are attempting to add a new User ID, but there are already
  2410.         30 user ID's defined on your computer. This is the maximum. If
  2411.         you wish to delete all user ID's and start over, you must del-
  2412.         ete file AMEDIT.DAT from the root directory of your hard disk.
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.                                                                 -39-
  2430.  
  2431. APPENDIX A - MESSAGES
  2432. ---------------------
  2433.  
  2434. There are 2 types of messages within AM-EDIT; Informative messages and
  2435. error messages. All messages are centered on the screen's bottom line.
  2436.  
  2437. A message is normally cleared from the screen as soon as you press the
  2438. next key. However, if the next key pressed is a key which causes a new
  2439. screen to overlay your edit screen (such as F1 - HELP), then the mes-
  2440. sage will still be on the screen when you return to the edit.
  2441.  
  2442.  
  2443.     A.1  INFORMATIVE MESSAGES
  2444.     -------------------------
  2445.  
  2446.     Informative messages inform you of action which has been taken or
  2447.     which cannot be taken as the result of a command that you entered
  2448.     or a function key that you pressed. The alarm does NOT sound when
  2449.     these messages appear.
  2450.  
  2451.  
  2452.     1.  Lines deleted: nnnnn
  2453.  
  2454.         Tells you how many lines were deleted after the completion of
  2455.         a DELETE command or after you have pressed function key F4 to
  2456.         delete the current line.
  2457.  
  2458.     2.  Lines restored: nnnnn
  2459.  
  2460.         Tells you how many lines were restored into your file after
  2461.         you have pressed Shift-F4 to restore deleted line(s).
  2462.  
  2463.     3.  Lines moved: nnnnn
  2464.  
  2465.         Tells you how many lines were moved after the completion of a
  2466.         MOVE command.
  2467.  
  2468.     4.  Lines copied: nnnnn
  2469.  
  2470.         Tells you how many lines were copied after the completion of a
  2471.         COPY command.
  2472.  
  2473.     5.  Lines inserted: nnnnn [Truncated: nnnnn]
  2474.  
  2475.         Tells you how many lines were added to your file after you use
  2476.         an INSERT command to insert lines from another file.
  2477.  
  2478.         If any inserted lines exceeded the maximum record length of
  2479.         1024 characters, then those lines were truncated and a count
  2480.         of the records truncated is included in the message.
  2481.  
  2482.     6.  Substitutions: nnnnn [Truncated: nnnnn]
  2483.  
  2484.         After a find-and-replace-all command, tells you how many oc-
  2485.         currences of the "find" string were located and replaced by
  2486.         the "replacement" string.
  2487.  
  2488.  
  2489.                                                                 -40-
  2490.  
  2491.         If you were replacing a text string with a longer string, it
  2492.         is possible that one or more of the lines altered by the com-
  2493.         mand exceeded the maximum record length of 1024 characters. If
  2494.         so, then the effected line(s) are truncated to 1024 characters
  2495.         in length, and a count of the truncated lines is included in
  2496.         the message.
  2497.  
  2498.     7.  Saving
  2499.  
  2500.         Informs you that the system is in the process of saving your
  2501.         file. The message appears after you press function key F8 and
  2502.         there have been changes to your file since the last save (or
  2503.         since you began the edit if this is the first save).
  2504.  
  2505.     8.  Data saved - Repeat F8 to end edit
  2506.  
  2507.         This message replaces message #7 after the save is completed
  2508.         to inform you that you may now terminate the edit by pressing
  2509.         function key F8 again. You do NOT have to end the edit at this
  2510.         point.
  2511.  
  2512.     9.  Data unchanged - Repeat F8 to end edit
  2513.  
  2514.         This message can appear after you press function key F8 to in-
  2515.         form you that there are no changes to save, and that you may
  2516.         now terminate the edit by pressing F8 again. You do NOT have
  2517.         to end the edit at this point.
  2518.  
  2519.    10.  Printing
  2520.  
  2521.         Appears after a PRINT command to inform you that the system
  2522.         is in the process of sending your text to the print queue.
  2523.  
  2524.    11.  *** TOP OF DATA ***
  2525.  
  2526.         You have pressed the "up arrow", PAGE UP, or Shift-TAB key,
  2527.         but the key cannot be processed because you are already at
  2528.         the top line or top page of your file.
  2529.  
  2530.    12.  *** END OF DATA ***
  2531.  
  2532.         Informs you that a key that you have just pressed (such as
  2533.         "down arrow", PAGE DOWN, ENTER, or TAB) cannot be processed
  2534.         because you are already at the bottom line or bottom page of
  2535.         your file.
  2536.  
  2537.         The message will also appear during a TRACE command once there
  2538.         are no more altered lines to display.
  2539.  
  2540.    13.  Press Shift-F10 to verify cancel
  2541.  
  2542.         Can appear after you press the cancel key (Shift-F8) to inform
  2543.         you that there are unsaved changes to your file. Asks you to
  2544.         verify that you wish to cancel the edit despite the fact that
  2545.         you will lose those changes.
  2546.  
  2547.  
  2548.  
  2549.                                                                 -41-
  2550.  
  2551.         If you decide that you do NOT wish to cancel the edit, you may
  2552.         press any other key to continue with the edit.
  2553.  
  2554.    14.  Directory Search cancelled
  2555.  
  2556.         You initiated a directory search from the file-to-edit screen
  2557.         of during an INSERT command, but you then cancelled the search
  2558.         by pressing function key F8.
  2559.  
  2560.    15.  STARTING NEW FILE
  2561.  
  2562.         The system could not locate the file that you specified as the
  2563.         file-to-edit. This message informs you that a new file will be
  2564.         created. If you notice that you entered the file name incor-
  2565.         rectly, you can press Shift-F8 to cancel the edit. This will
  2566.         avoid the creation of a new file.
  2567.  
  2568.    16.  Edit cancelled - changes lost
  2569.  
  2570.         You have cancelled an edit in which there were unsaved changes
  2571.         by pressing Shift-F8 followed by Shift-F10. All of the unsaved
  2572.         changes were therefore lost. This message appears on the file-
  2573.         to-edit screen as the system prompts you for the next file to
  2574.         be edited.
  2575.  
  2576.    17.  Edit cancelled
  2577.  
  2578.         You have cancelled an edit by pressing Shift-F8. There were
  2579.         no unsaved changes to the file at the time that you pressed
  2580.         the key. This message appears on the file-to-edit screen.
  2581.  
  2582.    18.  Loading file
  2583.  
  2584.         This message tells you that the system is in the process of
  2585.         loading a file. The message will appear either on the file-
  2586.         to-edit screen or on the edit screen following an INSERT
  2587.         command after you have either entered a valid file name or
  2588.         selected a file by way of a directory search.
  2589.  
  2590.    19.  End of line
  2591.  
  2592.         You have either pressed the right arrow key or entered a char-
  2593.         acter on a line where the cursor is already positioned at the
  2594.         last column of the line. Normally when you type a character,
  2595.         the cursor moves 1 position to the right to allow you to enter
  2596.         the next character. This message tells you that having reached
  2597.         the end of the line, the cursor is unable to move.
  2598.  
  2599.         You can continue typing characters after this message appears,
  2600.         but each typed character will overwrite the character which is
  2601.         already at the end of the line.
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.                                                                 -42-
  2610.  
  2611.     A.2  ERROR MESSAGES
  2612.     -------------------
  2613.  
  2614.     Error messages are displayed when you attempt some action which is
  2615.     not allowed or which cannot be performed by the system.
  2616.  
  2617.     The alarm will normally sound when an error message is displayed.
  2618.     You can use the User ID function (see Section 9) to adjust the
  2619.     length and tone of the alarm for your User ID.
  2620.  
  2621.     The "alarm length" parameter controls how long the alarm sounds.
  2622.     To turn the alarm off, position the arrow on the User ID Parameter
  2623.     screen to the "alarm length" field and press the left arrow until
  2624.     the alarm cannot be heard. Then press function key F1 to save.
  2625.  
  2626.  
  2627.     1.  Invalid command
  2628.  
  2629.         The system does not recognize your command.
  2630.  
  2631.     2.  Extra character(s) on line
  2632.  
  2633.         You have entered a valid command, but there are one or more
  2634.         extra characters on the command line. For example, you enter
  2635.         "d 1", but the character "1" is unneeded. If you had entered
  2636.         "d1", the error "Invalid command" would have resulted.
  2637.  
  2638.     3.  Command invalid at this point
  2639.  
  2640.         This error occurs in a "null file" condition (there are no
  2641.         lines of data in your file) if you attempt to execute any
  2642.         command from the command line other than an INSERT command.
  2643.  
  2644.         The only commands valid in a "null file" condition are "I"
  2645.         to insert before, and "IA" to insert after. When there are
  2646.         no lines of text in your file, these commands are identical
  2647.         in function.
  2648.  
  2649.     4.  Incomplete command
  2650.  
  2651.         You have entered a valid command, but the command requires
  2652.         an argument. For example, you entered "F" alone as the com-
  2653.         mand, but a FIND command requires at least 1 argument. This
  2654.         error can occur on a FIND, MOVE, or COPY command.
  2655.  
  2656.     5.  Improper Move command
  2657.  
  2658.         You have attempted to move a range of lines to a position
  2659.         within the range itself, for example, you attempt to move
  2660.         lines 21-28 after line 24.
  2661.  
  2662.         Note that you would get this error message if you attempted
  2663.         to move line 21-28 after line 28 or attempted to move lines
  2664.         21-28 before line 21, since these commands would not result
  2665.         in the actual movement of any lines.
  2666.  
  2667.  
  2668.  
  2669.                                                                 -43-
  2670.  
  2671.     6.  Improper Copy command
  2672.  
  2673.         You have attempted to copy a range of lines to a position
  2674.         within the range itself. For example, you attempt to copy
  2675.         lines 45-65 after line 55.
  2676.  
  2677.         You can copy lines 45-65 after line 65, but you cannot copy
  2678.         lines 45-65 BEFORE line 65. Conversely, you may copy lines
  2679.         45-65 before line 45 but not AFTER line 45.
  2680.  
  2681.     7.  Invalid keyword
  2682.  
  2683.         During a MOVE or a COPY command, you have entered a keyword
  2684.         other than "a" or "b" on the command line at the point that
  2685.         you are ready to set the current line to the target line of
  2686.         the move or copy.
  2687.  
  2688.         OR
  2689.  
  2690.         You are attempting to execute a find-and-replace-all command,
  2691.         but have entered a keyword other than "a" or "all" after the
  2692.         "replacement" text string.
  2693.  
  2694.     8.  This key has no meaning
  2695.  
  2696.         You have pressed a key which has no meaning. For example, most
  2697.         Ctrl-function key and Alt-function key combinations have no
  2698.         meaning in this version of AM-EDIT.
  2699.  
  2700.     9.  Null string not valid here
  2701.  
  2702.         You have entered a null string as the search argument within a
  2703.         FIND command. A null string is valid in a FIND command only if
  2704.         it is the replacement argument.
  2705.  
  2706.    10.  Unmatched quote
  2707.  
  2708.         Within a FIND command, you have entered either a search string
  2709.         or a replacement string which begins with a quote or a double
  2710.         quote, but you did not end the string with a matching quote or
  2711.         double quote.
  2712.  
  2713.    11.  "search string" not found
  2714.  
  2715.         You have done one of the following:
  2716.  
  2717.         *  Entered a FIND or FIND-AND-REPLACE command.
  2718.         *  Pressed function key F9 to find the next occurrence of a
  2719.            text string.
  2720.         *  Pressed Shift-F9 to find the previous occurrence of a text
  2721.            string.
  2722.  
  2723.         The message informs you that the text string was not found be-
  2724.         fore the end (or beginning) of your file was reached. You may
  2725.         press function key F9 (or Shift-F9) to restart the search at
  2726.         the first (or last) line of your file.
  2727.  
  2728.  
  2729.                                                                 -44-
  2730.  
  2731.         Due to the limited space available for message display, only
  2732.         the first 27 characters of the "search string" will appear in
  2733.         the message should the string exceed 27 characters in length.
  2734.  
  2735.    12.  There is no search argument
  2736.  
  2737.         You have pressed function key F9 (or Shift-F9) to find the
  2738.         next (or previous) occurrence of a text string, but you have
  2739.         not yet used a FIND command during the edit to define a text
  2740.         string for which to search.
  2741.  
  2742.    13.  Nothing to restore
  2743.  
  2744.         You have pressed Shift-F4 to restore lines, but there are no
  2745.         lines to restore.
  2746.  
  2747.         This could mean that you have not yet deleted any lines during
  2748.         the edit, or that you have already restored all of the deleted
  2749.         lines which can be restored (The delete table can hold only 20
  2750.         entries).
  2751.  
  2752.    14.  Line full
  2753.  
  2754.         You are in insert mode (as opposed to overwrite mode) and you
  2755.         attempt to insert a character into a line which cannot accept
  2756.         the character. This means that there is already a non-blank
  2757.         character in the last column of the line.
  2758.  
  2759.    15.  Command conflict
  2760.  
  2761.         You have entered a command on the command line and then, in-
  2762.         stead of pressing the ENTER key to execute the command, you
  2763.         pressed a function key (such as F4) which acts as a command.
  2764.         The system does not know whether to process the command or
  2765.         the function key.
  2766.  
  2767.         The message will appear if you press any of the following keys
  2768.         while the command line is NOT blank.
  2769.  
  2770.            *  F4 - delete the current line
  2771.  
  2772.            *  F5 - duplicate the current line
  2773.  
  2774.            *  F6 - type new line(s) before the current line
  2775.  
  2776.            *  F7 - split the current line
  2777.  
  2778.            *  F9 - find the next occurrence of a string
  2779.  
  2780.            *  Shift-F4 - restore deleted line(s)
  2781.  
  2782.            *  Shift-F6 - type new line(s) after the current line
  2783.  
  2784.            *  Shift-F7 - join the current line to the previous line
  2785.  
  2786.            *  Shift-F9 - find the previous occurrence of a string
  2787.  
  2788.  
  2789.                                                                 -45-
  2790.  
  2791.    16.  Key not valid while adding text
  2792.  
  2793.         You have pressed one of the following function keys while in
  2794.         the process of typing a new text line into your file.
  2795.  
  2796.            *  F4 - Delete the current line
  2797.  
  2798.            *  F5 - Duplicate the current line
  2799.  
  2800.            *  F7 - Split the current line
  2801.  
  2802.            *  Shift-F4 - Restore deleted line(s)
  2803.  
  2804.            *  Shift-F7 - Join the current line to the previous line
  2805.  
  2806.    17.  Shift-F7 not valid here
  2807.  
  2808.         You have pressed Shift-F7 (join the current line to the prev-
  2809.         ious line) while the current line is the first line of your
  2810.         file. Thus there is no previous line to which the current line
  2811.         can be joined.
  2812.  
  2813.    18.  Key not enabled at this time
  2814.  
  2815.         You have pressed function key F10 or Shift-F10, but the key
  2816.         is not enabled at the time that it was pressed.
  2817.  
  2818.         Function key F10 is enabled at the point immediately after
  2819.         you have located an occurrence of a "find" string during a
  2820.         find-and-replace command.
  2821.  
  2822.         Shift-F10 is enabled ONLY at the point immediately after you
  2823.         have pressed Shift-F8 to cancel your edit and the message
  2824.         "Press Shift-F10 to verify cancel" appears at the bottom of
  2825.         your screen.
  2826.  
  2827.    19.  Printer not ready - Command ignored
  2828.  
  2829.         You have entered a print command ("P1", "P2", or "P3") or a
  2830.         form feed command ("PF1" or "PF2" or "PF3"), but the desig-
  2831.         nated printer is either turned off, is not on-line, or is out
  2832.         of paper.
  2833.  
  2834.    20.  Printer does not exist
  2835.  
  2836.         You have entered a print or a form feed command, but the de-
  2837.         signated printer does not exist. For example, you entered the
  2838.         command "P3", but there is no printer assigned to "LPT3" on
  2839.         your computer.
  2840.  
  2841.    21.  Line overflow - key ignored
  2842.  
  2843.         You have pressed Shift-F7 to join a line to the previous line
  2844.         or you pressed function key F10 to replace a string during a
  2845.         find-and-replace operation, but the resulting line would have
  2846.         exceeded the maximum line length of 1024 characters. The key
  2847.         was therefore ignored.
  2848.  
  2849.                                                                 -46-
  2850.  
  2851.    22.  This is a null file
  2852.  
  2853.         The file specified in an INSERT command is a null file (a file
  2854.         that exists, but which has no records). Therefore, there were
  2855.         no lines inserted into your file as a result of the command.
  2856.  
  2857.    23.  Out of memory - cancel recommended
  2858.  
  2859.         This error can occur ONLY during a find-and-replace-all com-
  2860.         mand in which you are replacing all occurrences of a string
  2861.         with a LONGER string.
  2862.  
  2863.         The message informs you that the system ran out of memory be-
  2864.         fore all strings were replaced. Unless you can correct the
  2865.         problem, it is recommended that you cancel the edit at this
  2866.         point, since the file has been corrupted.
  2867.  
  2868.    24.  Lines truncated: nnnnn
  2869.  
  2870.         This message can appear after the initial loading of your file
  2871.         to inform you that one or more lines in the file exceeded the
  2872.         maximum line length of 1024 characters. Those lines were thus
  2873.         truncated to 1024 characters.
  2874.  
  2875.    25.  This is not a text file
  2876.  
  2877.         The file that you specified as the argument in an INSERT com-
  2878.         mand is not a text file. You can not merge non-text files into
  2879.         text files.
  2880.  
  2881.    26.  Invalid file name
  2882.  
  2883.         The file name that you entered as the "file to edit" or as the
  2884.         argument in an INSERT command is not a valid DOS file name.
  2885.  
  2886.         Some examples of invalid file names are:
  2887.  
  2888.            c:\aworkfile    (File name is over 8 characters in length)
  2889.            c:\work.info    (Suffix is over 3 characters in length)
  2890.            a\:work         (Should be a:\work)
  2891.            b:\workfile.    (Missing file suffix or extra character)
  2892.  
  2893.    27.  Invalid path
  2894.  
  2895.         The file name that you entered as the "file to edit" or as the
  2896.         argument in one of the INSERT commands has an invalid path.
  2897.  
  2898.         The likely cause of this error is the existance of an invalid
  2899.         directory name within the file path. For example, you entered
  2900.         the file name "C:\DOC\WORK", but the directory "DOC" does not
  2901.         exist.
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.                                                                 -47-
  2910.  
  2911.    28.  File access denied
  2912.  
  2913.         The file that you specified as the "file-to-edit" or as the
  2914.         argument in an INSERT command cannot be accessed. This could
  2915.         mean that you entered a directory name as the file name, for
  2916.         example, you typed "C:\DOS" as the file name.
  2917.  
  2918.    29.  File not found
  2919.  
  2920.         The file specified in an INSERT command was not found. Remem-
  2921.         ber that you must enter the full path name unless the file is
  2922.         in the current directory (the directory you were in when you
  2923.         executed AM-EDIT). Remember also that you can do a directory
  2924.         search to find the desired file.
  2925.  
  2926.    30.  Out of memory - File truncated
  2927.  
  2928.         During the initial loading of your file, the system ran out
  2929.         of memory before it could load the entire file. This message
  2930.         can only appear at the beginning of an edit while the system
  2931.         is in the process of loading your file.
  2932.  
  2933.         The suggested remedy is to break down your file into modules
  2934.         and then use whatever statements (such as INCLUDE or COPY)
  2935.         which are appropriate for your programming language to com-
  2936.         bine the modules during compilation.
  2937.  
  2938.    31.  Command would cause memory overflow
  2939.  
  2940.         A command cannot be executed due to the fact that a memory
  2941.         overflow condition would result. If you have done a lot of
  2942.         deleting and inserting of text lines, the best thing to do
  2943.         when this message appears is to perform a normal save/exit
  2944.         and then restart the edit.
  2945.  
  2946.    32.  Too many lines - File truncated
  2947.  
  2948.         During the initial loading of your file, the system loaded
  2949.         the first 60,000 lines, but could not load the remainder of
  2950.         the file because of the system limitation on the number of
  2951.         lines.
  2952.  
  2953.         This message would ONLY appear at the beginning of an edit,
  2954.         while the system is loading your file. See error message 30
  2955.         for a suggested remedy.
  2956.  
  2957.    33.  Command would cause line overflow
  2958.  
  2959.         A command cannot be executed due to the system limitation on
  2960.         the number of text lines. The command would have caused the
  2961.         number of text lines to exceed 60,000. See message 30 for a
  2962.         suggested remedy.
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.                                                                 -48-
  2970.  
  2971.    34.  Memory is at capacity
  2972.  
  2973.         The system has used all available memory. You may not execute
  2974.         any command which would increase the size of your file, except
  2975.         for function key Shift-F4 (restore deleted lines).
  2976.  
  2977.    35.  You may NOT update a non-text file
  2978.  
  2979.         You have have pressed a function key which would have caused
  2980.         a non-text file to be updated. You are only allowed to browse
  2981.         through non-text files.
  2982.  
  2983.    36.  Command not valid for non-text files
  2984.  
  2985.         You have entered a command which is not valid while browsing
  2986.         through a non-text file. The only command which is valid here
  2987.         is the FIND command.
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.                                                                 -49-
  3030.  
  3031.